[−][src]Struct scale_info::interner::Symbol
A symbol from an interner.
Can be used to resolve to the associated instance.
Implementations
impl<T, '_> Symbol<'_, T>
[src]
pub fn into_untracked(self) -> UntrackedSymbol<T>
[src]
Removes the lifetime tracking for this symbol.
Note
- This can be useful in situations where a data structure owns all symbols and interners and can verify accesses by itself.
- For further safety reasons an untracked symbol can no longer be used to resolve from an interner. It is still useful for serialization purposes.
Safety
Although removing lifetime constraints this operation can be considered to be safe since untracked symbols can no longer be used to resolve their associated instance from the interner.
Trait Implementations
impl<'a, T: Clone> Clone for Symbol<'a, T>
[src]
impl<'a, T: Copy> Copy for Symbol<'a, T>
[src]
impl<'a, T: Debug> Debug for Symbol<'a, T>
[src]
impl<'a, T: Eq> Eq for Symbol<'a, T>
[src]
impl<'a, T: Ord> Ord for Symbol<'a, T>
[src]
fn cmp(&self, other: &Symbol<'a, T>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'a, T: PartialEq> PartialEq<Symbol<'a, T>> for Symbol<'a, T>
[src]
impl<'a, T: PartialOrd> PartialOrd<Symbol<'a, T>> for Symbol<'a, T>
[src]
fn partial_cmp(&self, other: &Symbol<'a, T>) -> Option<Ordering>
[src]
fn lt(&self, other: &Symbol<'a, T>) -> bool
[src]
fn le(&self, other: &Symbol<'a, T>) -> bool
[src]
fn gt(&self, other: &Symbol<'a, T>) -> bool
[src]
fn ge(&self, other: &Symbol<'a, T>) -> bool
[src]
impl<'a, T> Serialize for Symbol<'a, T>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'a, T> StructuralEq for Symbol<'a, T>
[src]
impl<'a, T> StructuralPartialEq for Symbol<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Symbol<'a, T>
impl<'a, T> Send for Symbol<'a, T>
impl<'a, T> Sync for Symbol<'a, T>
impl<'a, T> Unpin for Symbol<'a, T>
impl<'a, T> UnwindSafe for Symbol<'a, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow(&self) -> &TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,