pub enum ImplKind {
Trait(ImplOfTrait),
Inherent(ImplOfInherent),
}Variants§
Trait(ImplOfTrait)
Inherent(ImplOfInherent)
Implementations§
Source§impl ImplKind
impl ImplKind
pub fn into_trait(self) -> Option<ImplOfTrait>
pub fn into_inherent(self) -> Option<ImplOfInherent>
pub fn as_trait(&self) -> Option<&ImplOfTrait>
pub fn as_inherent(&self) -> Option<&ImplOfInherent>
pub fn is_trait(&self) -> bool
pub fn is_inherent(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImplKind
impl RefUnwindSafe for ImplKind
impl Send for ImplKind
impl Sync for ImplKind
impl Unpin for ImplKind
impl UnsafeUnpin for ImplKind
impl UnwindSafe for ImplKind
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