#[non_exhaustive]pub struct TraitUseDecl {
pub traits: Box<[Name]>,
pub adaptations: Box<[TraitAdaptation]>,
pub doc_comment: Option<Comment>,
/* private fields */
}Expand description
A use Trait; clause inside a class.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.traits: Box<[Name]>Used traits.
adaptations: Box<[TraitAdaptation]>Rules in the { ... } block.
doc_comment: Option<Comment>Preceding doc comment.
Implementations§
Trait Implementations§
Source§impl Clone for TraitUseDecl
impl Clone for TraitUseDecl
Source§impl Debug for TraitUseDecl
impl Debug for TraitUseDecl
Auto Trait Implementations§
impl Freeze for TraitUseDecl
impl RefUnwindSafe for TraitUseDecl
impl Send for TraitUseDecl
impl Sync for TraitUseDecl
impl Unpin for TraitUseDecl
impl UnsafeUnpin for TraitUseDecl
impl UnwindSafe for TraitUseDecl
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