Struct syn_helpers::Trait
source · pub struct Trait {
pub name: Path,
pub generic_parameters: Option<Vec<GenericParam>>,
pub items: Vec<TraitItem>,
}
Expand description
A declaration for a Rust trait
Fields§
§name: Path
§generic_parameters: Option<Vec<GenericParam>>
§items: Vec<TraitItem>
Auto Trait Implementations§
impl !RefUnwindSafe for Trait
impl !Send for Trait
impl !Sync for Trait
impl Unpin for Trait
impl !UnwindSafe for Trait
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