pub struct ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body> {
pub mods: Mods,
pub type_args: TypeArgs,
pub name: Name,
pub args: Args,
pub body: Body,
pub throws: Throws,
}Expand description
Defines a constructor
Fields§
§mods: ModsThe modifiers. Must be a sequence
type_args: TypeArgsThe type arguments. Must be a sequence
name: NameThe simple name of the class
args: ArgsThe constructor arguments. Must be a sequence
body: BodyThe constructor body
throws: ThrowsThe throws declaration. Must be a sequence
Trait Implementations§
Source§impl<Mods: Clone, TypeArgs: Clone, Name: Clone, Args: Clone, Throws: Clone, Body: Clone> Clone for ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body>
impl<Mods: Clone, TypeArgs: Clone, Name: Clone, Args: Clone, Throws: Clone, Body: Clone> Clone for ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body>
Source§fn clone(&self) -> ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body>
fn clone(&self) -> ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Mods: Debug, TypeArgs: Debug, Name: Debug, Args: Debug, Throws: Debug, Body: Debug> Debug for ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body>
impl<Mods: Debug, TypeArgs: Debug, Name: Debug, Args: Debug, Throws: Debug, Body: Debug> Debug for ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body>
Source§impl<O, Mods, TypeArgs, Name, Args, Throws, Body> Writable<O> for ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body>where
O: Output,
Mods: WritableSeq<O>,
TypeArgs: WritableSeq<O>,
Name: Writable<O>,
Args: WritableSeq<O>,
Throws: WritableSeq<O>,
Body: Writable<O>,
impl<O, Mods, TypeArgs, Name, Args, Throws, Body> Writable<O> for ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body>where
O: Output,
Mods: WritableSeq<O>,
TypeArgs: WritableSeq<O>,
Name: Writable<O>,
Args: WritableSeq<O>,
Throws: WritableSeq<O>,
Body: Writable<O>,
Auto Trait Implementations§
impl<Mods, TypeArgs, Name, Args, Throws, Body> Freeze for ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body>
impl<Mods, TypeArgs, Name, Args, Throws, Body> RefUnwindSafe for ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body>where
Mods: RefUnwindSafe,
TypeArgs: RefUnwindSafe,
Name: RefUnwindSafe,
Args: RefUnwindSafe,
Body: RefUnwindSafe,
Throws: RefUnwindSafe,
impl<Mods, TypeArgs, Name, Args, Throws, Body> Send for ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body>
impl<Mods, TypeArgs, Name, Args, Throws, Body> Sync for ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body>
impl<Mods, TypeArgs, Name, Args, Throws, Body> Unpin for ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body>
impl<Mods, TypeArgs, Name, Args, Throws, Body> UnwindSafe for ConstructorDef<Mods, TypeArgs, Name, Args, Throws, Body>where
Mods: UnwindSafe,
TypeArgs: UnwindSafe,
Name: UnwindSafe,
Args: UnwindSafe,
Body: UnwindSafe,
Throws: UnwindSafe,
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