Struct scale_info::interner::UntrackedSymbol
source · [−]pub struct UntrackedSymbol<T> { /* private fields */ }
Expand description
A symbol that is not lifetime tracked.
This can be used by self-referential types but can no longer be used to resolve instances.
Implementations
sourceimpl<T> UntrackedSymbol<T>
impl<T> UntrackedSymbol<T>
Trait Implementations
sourceimpl<T: Clone> Clone for UntrackedSymbol<T>
impl<T: Clone> Clone for UntrackedSymbol<T>
sourcefn clone(&self) -> UntrackedSymbol<T>
fn clone(&self) -> UntrackedSymbol<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for UntrackedSymbol<T>
impl<T: Debug> Debug for UntrackedSymbol<T>
sourceimpl<T> Decode for UntrackedSymbol<T>where
PhantomData<fn() -> T>: Decode,
PhantomData<fn() -> T>: Decode,
impl<T> Decode for UntrackedSymbol<T>where
PhantomData<fn() -> T>: Decode,
PhantomData<fn() -> T>: Decode,
sourcefn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.
sourcefn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
sourcefn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
sourceimpl<T> Encode for UntrackedSymbol<T>where
PhantomData<fn() -> T>: Encode,
PhantomData<fn() -> T>: Encode,
impl<T> Encode for UntrackedSymbol<T>where
PhantomData<fn() -> T>: Encode,
PhantomData<fn() -> T>: Encode,
sourcefn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.
sourcefn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
sourcefn encode(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn encode(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Convert self to an owned vector.
sourcefn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
sourcefn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
sourceimpl<T: Ord> Ord for UntrackedSymbol<T>
impl<T: Ord> Ord for UntrackedSymbol<T>
sourcefn cmp(&self, other: &UntrackedSymbol<T>) -> Ordering
fn cmp(&self, other: &UntrackedSymbol<T>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: PartialEq> PartialEq<UntrackedSymbol<T>> for UntrackedSymbol<T>
impl<T: PartialEq> PartialEq<UntrackedSymbol<T>> for UntrackedSymbol<T>
sourcefn eq(&self, other: &UntrackedSymbol<T>) -> bool
fn eq(&self, other: &UntrackedSymbol<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl<T: PartialOrd> PartialOrd<UntrackedSymbol<T>> for UntrackedSymbol<T>
impl<T: PartialOrd> PartialOrd<UntrackedSymbol<T>> for UntrackedSymbol<T>
sourcefn partial_cmp(&self, other: &UntrackedSymbol<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &UntrackedSymbol<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: Copy> Copy for UntrackedSymbol<T>
impl<T> EncodeLike<UntrackedSymbol<T>> for UntrackedSymbol<T>where
PhantomData<fn() -> T>: Encode,
PhantomData<fn() -> T>: Encode,
impl<T: Eq> Eq for UntrackedSymbol<T>
impl<T> StructuralEq for UntrackedSymbol<T>
impl<T> StructuralPartialEq for UntrackedSymbol<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for UntrackedSymbol<T>
impl<T> Send for UntrackedSymbol<T>
impl<T> Sync for UntrackedSymbol<T>
impl<T> Unpin for UntrackedSymbol<T>
impl<T> UnwindSafe for UntrackedSymbol<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more