[−][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]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[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> 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>
[src]
impl<'a, T> Send for Symbol<'a, T>
[src]
impl<'a, T> Sync for Symbol<'a, T>
[src]
impl<'a, T> Unpin for Symbol<'a, T>
[src]
impl<'a, T> UnwindSafe for Symbol<'a, T>
[src]
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,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,