pub struct TypeConstructors {
pub type_name: String,
pub constructors: Vec<ConstructorInfo>,
}Expand description
Known constructors for exhaustiveness checking.
Fields§
§type_name: StringName of the type
constructors: Vec<ConstructorInfo>Constructor information
Trait Implementations§
Source§impl Clone for TypeConstructors
impl Clone for TypeConstructors
Source§fn clone(&self) -> TypeConstructors
fn clone(&self) -> TypeConstructors
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 TypeConstructors
impl RefUnwindSafe for TypeConstructors
impl Send for TypeConstructors
impl Sync for TypeConstructors
impl Unpin for TypeConstructors
impl UnsafeUnpin for TypeConstructors
impl UnwindSafe for TypeConstructors
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