pub enum Path<V, E> {
Id(V),
Seq(NonEmpty<E>),
}
Variants§
Trait Implementations§
Source§impl<'de, V, E> Deserialize<'de> for Path<V, E>where
V: Deserialize<'de>,
E: Deserialize<'de>,
impl<'de, V, E> Deserialize<'de> for Path<V, E>where
V: Deserialize<'de>,
E: Deserialize<'de>,
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<V, E> FromWasmAbi for Path<V, E>where
Self: DeserializeOwned,
impl<V, E> FromWasmAbi for Path<V, E>where
Self: DeserializeOwned,
Source§impl<V, E> IntoWasmAbi for Path<V, E>
impl<V, E> IntoWasmAbi for Path<V, E>
Source§impl<V, E> OptionFromWasmAbi for Path<V, E>where
Self: DeserializeOwned,
impl<V, E> OptionFromWasmAbi for Path<V, E>where
Self: DeserializeOwned,
Source§impl<V, E> OptionIntoWasmAbi for Path<V, E>
impl<V, E> OptionIntoWasmAbi for Path<V, E>
Source§impl<V, E> RefFromWasmAbi for Path<V, E>where
Self: DeserializeOwned,
impl<V, E> RefFromWasmAbi for Path<V, E>where
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§impl<V, E> Tsify for Path<V, E>
impl<V, E> Tsify for Path<V, E>
const DECL: &'static str = "export type Path<V, E> = { tag: \"Id\"; content: V } | { tag: \"Seq\"; content: NonEmpty<E> };"
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<V, E> VectorFromWasmAbi for Path<V, E>where
Self: DeserializeOwned,
impl<V, E> VectorFromWasmAbi for Path<V, E>where
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl<V, E> VectorIntoWasmAbi for Path<V, E>
impl<V, E> VectorIntoWasmAbi for Path<V, E>
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
impl<V: Eq, E: Eq> Eq for Path<V, E>
impl<V, E> StructuralPartialEq for Path<V, E>
Auto Trait Implementations§
impl<V, E> Freeze for Path<V, E>
impl<V, E> RefUnwindSafe for Path<V, E>where
V: RefUnwindSafe,
E: RefUnwindSafe,
impl<V, E> Send for Path<V, E>
impl<V, E> Sync for Path<V, E>
impl<V, E> Unpin for Path<V, E>
impl<V, E> UnwindSafe for Path<V, E>where
V: UnwindSafe,
E: UnwindSafe,
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::Abi
Source§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
.