pub struct CtorEntry {
pub owning_type: TypeId,
pub name: String,
}Expand description
One entry in the constructor table. A constructor belongs to a single type; sum-type variants get one entry each, product (record) types get one entry total.
Fields§
§owning_type: TypeId§name: StringSource name of the variant ("Ok", "Err", "Some",
"None", "Circle", …). For record types this is the
type’s own name (records share their type’s name as the
constructor name in source syntax: User { ... }).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CtorEntry
impl RefUnwindSafe for CtorEntry
impl Send for CtorEntry
impl Sync for CtorEntry
impl Unpin for CtorEntry
impl UnsafeUnpin for CtorEntry
impl UnwindSafe for CtorEntry
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