pub struct Constructor {
pub doc: Doc,
pub name: Ident,
pub params: Vec<Param>,
pub initialisers: Vec<(Ident, Expr)>,
pub is_explicit: bool,
pub is_constexpr: bool,
pub is_noexcept: bool,
pub body: FunctionBody,
}Expand description
A constructor.
Fields§
§doc: DocDocumentation.
name: IdentThe class’s name.
params: Vec<Param>Parameters.
initialisers: Vec<(Ident, Expr)>The member initialiser list, in written order.
is_explicit: boolexplicit.
is_constexpr: boolconstexpr.
is_noexcept: boolnoexcept.
body: FunctionBodyThe body, or the defaulted or deleted form.
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