Enum ruast::GenericBound
source · pub enum GenericBound {
Trait(PolyTraitRef),
Outlives(String),
}Variants§
Trait(PolyTraitRef)
Outlives(String)
Trait Implementations§
source§impl Clone for GenericBound
impl Clone for GenericBound
source§fn clone(&self) -> GenericBound
fn clone(&self) -> GenericBound
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GenericBound
impl Debug for GenericBound
source§impl Display for GenericBound
impl Display for GenericBound
source§impl From<GenericBound> for TokenStream
impl From<GenericBound> for TokenStream
source§fn from(value: GenericBound) -> Self
fn from(value: GenericBound) -> Self
Converts to this type from the input type.
source§impl Hash for GenericBound
impl Hash for GenericBound
source§impl PartialEq for GenericBound
impl PartialEq for GenericBound
source§fn eq(&self, other: &GenericBound) -> bool
fn eq(&self, other: &GenericBound) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for GenericBound
impl StructuralEq for GenericBound
impl StructuralPartialEq for GenericBound
Auto Trait Implementations§
impl RefUnwindSafe for GenericBound
impl Send for GenericBound
impl Sync for GenericBound
impl Unpin for GenericBound
impl UnwindSafe for GenericBound
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