Enum ast_demangle::rust_v0::GenericArg
source · [−]Variants
Lifetime(u64)
Type(Rc<Type<'a>>)
Const(Rc<Const<'a>>)
Implementations
sourceimpl GenericArg<'_>
impl GenericArg<'_>
sourcepub fn display(&self, style: DisplayStyle) -> impl Display + '_
pub fn display(&self, style: DisplayStyle) -> impl Display + '_
Returns an object that implements Display for printing the generic argument.
Trait Implementations
sourceimpl<'a> Clone for GenericArg<'a>
impl<'a> Clone for GenericArg<'a>
sourcefn clone(&self) -> GenericArg<'a>
fn clone(&self) -> GenericArg<'a>
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<'a> Debug for GenericArg<'a>
impl<'a> Debug for GenericArg<'a>
sourceimpl Display for GenericArg<'_>
impl Display for GenericArg<'_>
sourceimpl<'a> Hash for GenericArg<'a>
impl<'a> Hash for GenericArg<'a>
sourceimpl<'a> Ord for GenericArg<'a>
impl<'a> Ord for GenericArg<'a>
sourceimpl<'a> PartialEq<GenericArg<'a>> for GenericArg<'a>
impl<'a> PartialEq<GenericArg<'a>> for GenericArg<'a>
sourcefn eq(&self, other: &GenericArg<'a>) -> bool
fn eq(&self, other: &GenericArg<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &GenericArg<'a>) -> bool
fn ne(&self, other: &GenericArg<'a>) -> bool
This method tests for !=.
sourceimpl<'a> PartialOrd<GenericArg<'a>> for GenericArg<'a>
impl<'a> PartialOrd<GenericArg<'a>> for GenericArg<'a>
sourcefn partial_cmp(&self, other: &GenericArg<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &GenericArg<'a>) -> 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<'a> Eq for GenericArg<'a>
impl<'a> StructuralEq for GenericArg<'a>
impl<'a> StructuralPartialEq for GenericArg<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for GenericArg<'a>
impl<'a> !Send for GenericArg<'a>
impl<'a> !Sync for GenericArg<'a>
impl<'a> Unpin for GenericArg<'a>
impl<'a> UnwindSafe for GenericArg<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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