pub enum DatatypeDec<'st> {
DatatypeDec(&'st [ConstructorDec<'st>]),
Par(&'st [Symbol<'st>], &'st [ConstructorDec<'st>]),
}
Variants§
DatatypeDec(&'st [ConstructorDec<'st>])
(<constructor_dec>+)
Par(&'st [Symbol<'st>], &'st [ConstructorDec<'st>])
(par (<symbol>+) (<constructor_dec>+))
Implementations§
Source§impl<'st> DatatypeDec<'st>
impl<'st> DatatypeDec<'st>
Trait Implementations§
Source§impl<'st> Clone for DatatypeDec<'st>
impl<'st> Clone for DatatypeDec<'st>
Source§fn clone(&self) -> DatatypeDec<'st>
fn clone(&self) -> DatatypeDec<'st>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'st> Debug for DatatypeDec<'st>
impl<'st> Debug for DatatypeDec<'st>
Source§impl Display for DatatypeDec<'_>
impl Display for DatatypeDec<'_>
Source§impl<'st> Hash for DatatypeDec<'st>
impl<'st> Hash for DatatypeDec<'st>
Source§impl<'st> PartialEq for DatatypeDec<'st>
impl<'st> PartialEq for DatatypeDec<'st>
impl<'st> Copy for DatatypeDec<'st>
impl<'st> Eq for DatatypeDec<'st>
impl<'st> StructuralPartialEq for DatatypeDec<'st>
Auto Trait Implementations§
impl<'st> Freeze for DatatypeDec<'st>
impl<'st> RefUnwindSafe for DatatypeDec<'st>
impl<'st> Send for DatatypeDec<'st>
impl<'st> Sync for DatatypeDec<'st>
impl<'st> Unpin for DatatypeDec<'st>
impl<'st> UnwindSafe for DatatypeDec<'st>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more