pub struct ImplUnit {
pub attributes: Vec<String>,
pub documentation: Option<String>,
pub head: String,
pub methods: Vec<FunctionUnit>,
pub source: Option<String>,
}Expand description
Represents an implementation block in the code, not all languages need this
Fields§
§attributes: Vec<String>Attributes applied to the trait
documentation: Option<String>The documentation for the implementation block
head: Stringimpl head, e.g. impl Trait for Type or impl Type
methods: Vec<FunctionUnit>The methods implemented in this block
source: Option<String>The source code of the implementation block
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImplUnit
impl RefUnwindSafe for ImplUnit
impl Send for ImplUnit
impl Sync for ImplUnit
impl Unpin for ImplUnit
impl UnwindSafe for ImplUnit
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