pub struct Constructor {
pub doc: Doc,
pub annotations: Vec<Annotation>,
pub modifiers: Vec<Modifier>,
pub name: Ident,
pub params: Vec<Param>,
pub throws: Vec<Type>,
pub body: Block,
}Expand description
A constructor.
Fields§
§doc: DocDocumentation.
annotations: Vec<Annotation>Annotations.
modifiers: Vec<Modifier>Modifiers.
name: IdentThe class’s name.
params: Vec<Param>Parameters.
throws: Vec<Type>throws.
body: BlockThe body.
Trait Implementations§
Source§impl Clone for Constructor
impl Clone for Constructor
Source§impl Debug for Constructor
impl Debug for Constructor
impl Eq for Constructor
Source§impl PartialEq for Constructor
impl PartialEq for Constructor
impl StructuralPartialEq for Constructor
Auto Trait Implementations§
impl Freeze for Constructor
impl RefUnwindSafe for Constructor
impl Send for Constructor
impl Sync for Constructor
impl Unpin for Constructor
impl UnsafeUnpin for Constructor
impl UnwindSafe for Constructor
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