pub struct NodeIndex(pub u32);Expand description
Index into an arena. Used instead of pointers/references for serialization-friendly graphs.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeIndex
impl<'de> Deserialize<'de> for NodeIndex
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromWasmAbi for NodeIndex
impl FromWasmAbi for NodeIndex
Source§impl IntoWasmAbi for NodeIndex
impl IntoWasmAbi for NodeIndex
Source§impl LongRefFromWasmAbi for NodeIndex
impl LongRefFromWasmAbi for NodeIndex
Source§impl OptionFromWasmAbi for NodeIndex
impl OptionFromWasmAbi for NodeIndex
Source§impl OptionIntoWasmAbi for NodeIndex
impl OptionIntoWasmAbi for NodeIndex
Source§impl RefFromWasmAbi for NodeIndex
impl RefFromWasmAbi for NodeIndex
Source§type Anchor = RcRef<NodeIndex>
type Anchor = RcRef<NodeIndex>
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: <NodeIndex as RefFromWasmAbi>::Abi,
) -> <NodeIndex as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <NodeIndex as RefFromWasmAbi>::Abi, ) -> <NodeIndex as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for NodeIndex
impl RefMutFromWasmAbi for NodeIndex
Source§impl Serialize for NodeIndex
impl Serialize for NodeIndex
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 TryFromJsValue for NodeIndex
impl TryFromJsValue for NodeIndex
Source§impl VectorFromWasmAbi for NodeIndex
impl VectorFromWasmAbi for NodeIndex
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <NodeIndex as VectorFromWasmAbi>::Abi, ) -> Box<[NodeIndex]>
Source§impl VectorIntoWasmAbi for NodeIndex
impl VectorIntoWasmAbi for NodeIndex
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[NodeIndex]>, ) -> <NodeIndex as VectorIntoWasmAbi>::Abi
impl Copy for NodeIndex
impl Eq for NodeIndex
impl StructuralPartialEq for NodeIndex
Auto Trait Implementations§
impl Freeze for NodeIndex
impl RefUnwindSafe for NodeIndex
impl Send for NodeIndex
impl Sync for NodeIndex
impl Unpin for NodeIndex
impl UnsafeUnpin for NodeIndex
impl UnwindSafe for NodeIndex
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§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.