pub struct ItemTrait {
pub visibility: Option<PubToken>,
pub trait_token: TraitToken,
pub name: Ident,
pub super_traits: Option<(ColonToken, Traits)>,
pub trait_items: Braces<Vec<(Annotated<FnSignature>, SemicolonToken)>>,
pub trait_defs_opt: Option<Braces<Vec<Annotated<ItemFn>>>>,
}
Fields
visibility: Option<PubToken>
trait_token: TraitToken
name: Ident
super_traits: Option<(ColonToken, Traits)>
trait_items: Braces<Vec<(Annotated<FnSignature>, SemicolonToken)>>
trait_defs_opt: Option<Braces<Vec<Annotated<ItemFn>>>>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ItemTrait
impl Send for ItemTrait
impl Sync for ItemTrait
impl Unpin for ItemTrait
impl UnwindSafe for ItemTrait
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more