pub struct ConstructorInfo {
pub name: String,
pub arity: usize,
}Expand description
Information about a single constructor.
Fields§
§name: StringConstructor name
arity: usizeNumber of arguments (arity)
Trait Implementations§
Source§impl Clone for ConstructorInfo
impl Clone for ConstructorInfo
Source§fn clone(&self) -> ConstructorInfo
fn clone(&self) -> ConstructorInfo
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 moreAuto Trait Implementations§
impl Freeze for ConstructorInfo
impl RefUnwindSafe for ConstructorInfo
impl Send for ConstructorInfo
impl Sync for ConstructorInfo
impl Unpin for ConstructorInfo
impl UnsafeUnpin for ConstructorInfo
impl UnwindSafe for ConstructorInfo
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