pub enum WhereKind {
Lifetime(WhereLifetime),
Type(WhereType),
}Variants§
Lifetime(WhereLifetime)
Type(WhereType)
Implementations§
Source§impl WhereKind
impl WhereKind
pub fn into_lifetime(self) -> Option<WhereLifetime>
pub fn into_type(self) -> Option<WhereType>
pub fn as_lifetime(&self) -> Option<&WhereLifetime>
pub fn as_type(&self) -> Option<&WhereType>
pub fn is_lifetime(&self) -> bool
pub fn is_type(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WhereKind
impl RefUnwindSafe for WhereKind
impl Send for WhereKind
impl Sync for WhereKind
impl Unpin for WhereKind
impl UnsafeUnpin for WhereKind
impl UnwindSafe for WhereKind
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