Skip to main content

Parts

Enum Parts 

Source
pub enum Parts {
    Empty,
    Positional(&'static [WireForm]),
    Named(&'static [Field]),
}
Expand description

A constructor’s payload.

Variants§

§

Empty

None.

§

Positional(&'static [WireForm])

Parts by position, of these forms.

§

Named(&'static [Field])

Named fields.

Trait Implementations§

Source§

impl Debug for Parts

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for Parts

§

impl Freeze for Parts
where &'static [WireForm]: Freeze, &'static [Field]: Freeze,

§

impl Move for Parts

§

impl RefUnwindSafe for Parts

§

impl Send for Parts
where &'static [WireForm]: Send, &'static [Field]: Send,

§

impl Sync for Parts

§

impl Unpin for Parts
where &'static [WireForm]: Unpin, &'static [Field]: Unpin,

§

impl UnsafeUnpin for Parts
where &'static [WireForm]: UnsafeUnpin, &'static [Field]: UnsafeUnpin,

§

impl UnwindSafe for Parts
where &'static [WireForm]: UnwindSafe, &'static [Field]: UnwindSafe,

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> Same for T

Source§

type Output = T

Should always be Self
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.