pub struct TraitEntry {
pub decl: Arc<TraitDecl>,
pub exported: bool,
pub doc: Option<String>,
}Expand description
A trait a module declares.
Fields§
§decl: Arc<TraitDecl>§exported: bool§doc: Option<String>Implementations§
Source§impl TraitEntry
impl TraitEntry
Sourcepub fn method(&self, name: &str) -> Option<&TraitMethod>
pub fn method(&self, name: &str) -> Option<&TraitMethod>
The method of this trait named name, if it declares one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TraitEntry
impl RefUnwindSafe for TraitEntry
impl Send for TraitEntry
impl Sync for TraitEntry
impl Unpin for TraitEntry
impl UnsafeUnpin for TraitEntry
impl UnwindSafe for TraitEntry
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