pub struct CustomType {
pub name: String,
pub module_path: String,
pub builtin: Type,
/* private fields */
}Expand description
Represents a custom type definition, analogous to super::Record, super::Enum, etc.
It’s the “type definition” for a Type::Custom { .. }. It adds things like a docstring.
Fields§
§name: String§module_path: String§builtin: TypeImplementations§
Trait Implementations§
Source§impl Clone for CustomType
impl Clone for CustomType
Source§fn clone(&self) -> CustomType
fn clone(&self) -> CustomType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CustomType
impl Debug for CustomType
Source§impl From<CustomTypeMetadata> for CustomType
impl From<CustomTypeMetadata> for CustomType
Source§fn from(meta: CustomTypeMetadata) -> Self
fn from(meta: CustomTypeMetadata) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CustomType
impl RefUnwindSafe for CustomType
impl Send for CustomType
impl Sync for CustomType
impl Unpin for CustomType
impl UnsafeUnpin for CustomType
impl UnwindSafe for CustomType
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