pub struct CurvePointFlat {
pub id: i32,
pub curve_id: i32,
pub order_index: i32,
pub pos_0: f64,
pub pos_1: f64,
pub pos_pre_squish_0: f64,
pub pos_pre_squish_1: f64,
}Fields§
§id: i32§curve_id: i32§order_index: i32§pos_0: f64§pos_1: f64§pos_pre_squish_0: f64§pos_pre_squish_1: f64Trait Implementations§
Source§impl Clone for CurvePointFlat
impl Clone for CurvePointFlat
Source§fn clone(&self) -> CurvePointFlat
fn clone(&self) -> CurvePointFlat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CopyInsert for CurvePointFlat
impl CopyInsert for CurvePointFlat
Source§impl Debug for CurvePointFlat
impl Debug for CurvePointFlat
Source§impl Default for CurvePointFlat
impl Default for CurvePointFlat
Source§fn default() -> CurvePointFlat
fn default() -> CurvePointFlat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CurvePointFlat
impl<'de> Deserialize<'de> for CurvePointFlat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CurvePointFlat> for JsValuewhere
CurvePointFlat: Serialize,
impl From<CurvePointFlat> for JsValuewhere
CurvePointFlat: Serialize,
Source§fn from(value: CurvePointFlat) -> Self
fn from(value: CurvePointFlat) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for CurvePointFlatwhere
Self: DeserializeOwned,
impl FromWasmAbi for CurvePointFlatwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &CurvePointFlatwhere
CurvePointFlat: Serialize,
impl IntoWasmAbi for &CurvePointFlatwhere
CurvePointFlat: Serialize,
Source§impl IntoWasmAbi for CurvePointFlatwhere
CurvePointFlat: Serialize,
impl IntoWasmAbi for CurvePointFlatwhere
CurvePointFlat: Serialize,
Source§impl JsonSchema for CurvePointFlat
impl JsonSchema for CurvePointFlat
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl OptionFromWasmAbi for CurvePointFlatwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for CurvePointFlatwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for CurvePointFlatwhere
CurvePointFlat: Serialize,
impl OptionIntoWasmAbi for CurvePointFlatwhere
CurvePointFlat: Serialize,
Source§impl RefFromWasmAbi for CurvePointFlatwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for CurvePointFlatwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<CurvePointFlat>
type Anchor = SelfOwner<CurvePointFlat>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for CurvePointFlat
impl Serialize for CurvePointFlat
Source§impl Tsify for CurvePointFlat
impl Tsify for CurvePointFlat
const DECL: &'static str = "export interface CurvePointFlat {\n id: number;\n curve_id: number;\n order_index: number;\n pos_0: number;\n pos_1: number;\n pos_pre_squish_0: number;\n pos_pre_squish_1: number;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for CurvePointFlatwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for CurvePointFlatwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for CurvePointFlatwhere
CurvePointFlat: Serialize,
impl VectorIntoWasmAbi for CurvePointFlatwhere
CurvePointFlat: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for CurvePointFlat
impl WasmDescribe for CurvePointFlat
Auto Trait Implementations§
impl Freeze for CurvePointFlat
impl RefUnwindSafe for CurvePointFlat
impl Send for CurvePointFlat
impl Sync for CurvePointFlat
impl Unpin for CurvePointFlat
impl UnsafeUnpin for CurvePointFlat
impl UnwindSafe for CurvePointFlat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.