Skip to main content

ConstructorFields

Struct ConstructorFields 

Source
pub struct ConstructorFields<'d> {
    pub definition: &'d Definition,
    pub generics: &'d [Generic],
    pub type_args: Vec<Type>,
    pub fields: Vec<ConstructorField<'d>>,
}

Fields§

§definition: &'d Definition§generics: &'d [Generic]§type_args: Vec<Type>§fields: Vec<ConstructorField<'d>>

Auto Trait Implementations§

§

impl<'d> Forget for ConstructorFields<'d>

§

impl<'d> Freeze for ConstructorFields<'d>

§

impl<'d> Move for ConstructorFields<'d>

§

impl<'d> RefUnwindSafe for ConstructorFields<'d>

§

impl<'d> Send for ConstructorFields<'d>
where &'d Definition: Send, &'d [Generic]: Send, RawVecInner: Send, Arc<Box<[Type]>>: Send, EcoVec<u8>: Send, Arc<FunctionType>: Send, BoxRaw<Type>: Send, Arc<Spelling>: Send, &'d EcoString: Send, &'d Type: Send,

§

impl<'d> Sync for ConstructorFields<'d>
where RawVecInner: Sync, EcoVec<u8>: Sync, Arc<Box<[Type]>>: Sync, Arc<FunctionType>: Sync, BoxRaw<Type>: Sync, Arc<Spelling>: Sync, BoxRaw<Annotation>: Sync, Arc<HashMap<EcoString, Method, FxBuildHasher>>: Sync, RawTable<(EcoString, usize)>: Sync, BoxRaw<GoTypeRecipe>: Sync,

§

impl<'d> Unpin for ConstructorFields<'d>

§

impl<'d> UnsafeUnpin for ConstructorFields<'d>

§

impl<'d> UnwindSafe for ConstructorFields<'d>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.