pub struct Impl { /* private fields */ }Implementations§
Source§impl Impl
impl Impl
pub fn new() -> ImplBuilder
pub fn to_item(&self) -> Item
pub fn id(&self) -> TypeId
pub fn len(&self) -> usize
pub fn meta(&self) -> &MetaData
pub fn of_trait(&self) -> Option<&Path>
pub fn self_ty(&self) -> &Type
pub fn generics(&self) -> &Generics
pub fn methods(&self) -> &[Method]
pub fn has_method(&self, name: &str) -> bool
pub fn method(&self, name: &str) -> &Method
pub fn method_mut(&mut self, name: &str) -> &mut Method
Trait Implementations§
impl StructuralPartialEq for Impl
Auto Trait Implementations§
impl !RefUnwindSafe for Impl
impl !Send for Impl
impl !Sync for Impl
impl !UnwindSafe for Impl
impl Freeze for Impl
impl Unpin for Impl
impl UnsafeUnpin for Impl
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