Skip to main content

Part

Enum Part 

Source
pub enum Part<Operator, Expr> {
    Operator(Operator),
    Expr(Expr),
}

Variants§

§

Operator(Operator)

§

Expr(Expr)

Trait Implementations§

Source§

impl<Operator: Clone, Expr: Clone> Clone for Part<Operator, Expr>

Source§

fn clone(&self) -> Part<Operator, Expr>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Operator: Debug, Expr: Debug> Debug for Part<Operator, Expr>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<Operator: Display, Expr: Display> Display for Part<Operator, Expr>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<Operator: Eq, Expr: Eq> Eq for Part<Operator, Expr>

Source§

impl<Operator, Expr> From<Part<Operator, Expr>> for Exprs<Operator, Expr>

Source§

fn from(value: Part<Operator, Expr>) -> Self

Converts to this type from the input type.
Source§

impl<Operator, Expr> FromIterator<Part<Operator, Expr>> for Exprs<Operator, Expr>

Source§

fn from_iter<T: IntoIterator<Item = Part<Operator, Expr>>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl<Operator: PartialEq, Expr: PartialEq> PartialEq for Part<Operator, Expr>

Source§

fn eq(&self, other: &Part<Operator, Expr>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<Operator, Expr> StructuralPartialEq for Part<Operator, Expr>

Auto Trait Implementations§

§

impl<Operator, Expr> Freeze for Part<Operator, Expr>
where Operator: Freeze, Expr: Freeze,

§

impl<Operator, Expr> RefUnwindSafe for Part<Operator, Expr>
where Operator: RefUnwindSafe, Expr: RefUnwindSafe,

§

impl<Operator, Expr> Send for Part<Operator, Expr>
where Operator: Send, Expr: Send,

§

impl<Operator, Expr> Sync for Part<Operator, Expr>
where Operator: Sync, Expr: Sync,

§

impl<Operator, Expr> Unpin for Part<Operator, Expr>
where Operator: Unpin, Expr: Unpin,

§

impl<Operator, Expr> UnsafeUnpin for Part<Operator, Expr>
where Operator: UnsafeUnpin, Expr: UnsafeUnpin,

§

impl<Operator, Expr> UnwindSafe for Part<Operator, Expr>
where Operator: UnwindSafe, Expr: 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<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.