pub enum TraitBound {
Lifetime(TraitBoundLifetime),
Normal(TraitBoundNormal),
Relaxed(TraitBoundRelaxed),
}Variants§
Implementations§
Source§impl TraitBound
impl TraitBound
pub fn into_lifetime(self) -> Option<TraitBoundLifetime>
pub fn into_normal(self) -> Option<TraitBoundNormal>
pub fn into_relaxed(self) -> Option<TraitBoundRelaxed>
pub fn as_lifetime(&self) -> Option<&TraitBoundLifetime>
pub fn as_normal(&self) -> Option<&TraitBoundNormal>
pub fn as_relaxed(&self) -> Option<&TraitBoundRelaxed>
pub fn is_lifetime(&self) -> bool
pub fn is_normal(&self) -> bool
pub fn is_relaxed(&self) -> bool
Trait Implementations§
Source§impl Debug for TraitBound
impl Debug for TraitBound
Source§impl<'a> Index<&'a TraitBound> for str
impl<'a> Index<&'a TraitBound> for str
Source§impl Index<TraitBound> for str
impl Index<TraitBound> for str
Auto Trait Implementations§
impl Freeze for TraitBound
impl RefUnwindSafe for TraitBound
impl Send for TraitBound
impl Sync for TraitBound
impl Unpin for TraitBound
impl UnsafeUnpin for TraitBound
impl UnwindSafe for TraitBound
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