#[non_exhaustive]pub enum FieldType {
Bool,
Int,
Float,
}Expand description
Primitive value representation stored in a buffer field.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldType
impl<'de> Deserialize<'de> for FieldType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FieldType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FieldType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FieldTypeLayout for FieldType
impl FieldTypeLayout for FieldType
Source§impl FromWasmAbi for FieldTypewhere
FieldType: DeserializeOwned,
impl FromWasmAbi for FieldTypewhere
FieldType: DeserializeOwned,
Source§impl IntoWasmAbi for &FieldType
impl IntoWasmAbi for &FieldType
Source§impl IntoWasmAbi for FieldType
impl IntoWasmAbi for FieldType
Source§impl OptionFromWasmAbi for FieldTypewhere
FieldType: DeserializeOwned,
impl OptionFromWasmAbi for FieldTypewhere
FieldType: DeserializeOwned,
Source§impl OptionIntoWasmAbi for FieldType
impl OptionIntoWasmAbi for FieldType
Source§impl RefFromWasmAbi for FieldTypewhere
FieldType: DeserializeOwned,
impl RefFromWasmAbi for FieldTypewhere
FieldType: 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<FieldType>
type Anchor = SelfOwner<FieldType>
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§unsafe fn ref_from_abi(
js: <FieldType as RefFromWasmAbi>::Abi,
) -> <FieldType as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <FieldType as RefFromWasmAbi>::Abi, ) -> <FieldType as RefFromWasmAbi>::Anchor
Source§impl Serialize for FieldType
impl Serialize for FieldType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl Tsify for FieldType
impl Tsify for FieldType
const DECL: &'static str = "/**\n * Primitive value representation stored in a buffer field.\n */\nexport type FieldType = \"bool\" | \"int\" | \"float\";"
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 FieldTypewhere
FieldType: DeserializeOwned,
impl VectorFromWasmAbi for FieldTypewhere
FieldType: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <FieldType as VectorFromWasmAbi>::Abi, ) -> Box<[FieldType]>
Source§impl VectorIntoWasmAbi for FieldType
impl VectorIntoWasmAbi for FieldType
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[FieldType]>, ) -> <FieldType as VectorIntoWasmAbi>::Abi
impl Copy for FieldType
impl Eq for FieldType
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnsafeUnpin for FieldType
impl UnwindSafe for FieldType
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
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.