pub enum Sort<'st> {
Sort(Identifier<'st>),
Parametric(Identifier<'st>, &'st [Sort<'st>]),
}
Variants§
Sort(Identifier<'st>)
<identifier>
Parametric(Identifier<'st>, &'st [Sort<'st>])
(<identifier> <sort>+)
Implementations§
Source§impl<'st> Sort<'st>
impl<'st> Sort<'st>
pub const fn new_simple(name: &'st str) -> Self
pub const fn new_indexed(name: &'st str, index: &'st [Index<'st>]) -> Self
pub const fn new_simple_parametric( name: &'st str, parameters: &'st [Sort<'st>], ) -> Self
pub const fn new_indexed_parametric( name: &'st str, index: &'st [Index<'st>], parameters: &'st [Sort<'st>], ) -> Self
Trait Implementations§
impl<'st> Copy for Sort<'st>
impl<'st> Eq for Sort<'st>
impl<'st> StructuralPartialEq for Sort<'st>
Auto Trait Implementations§
impl<'st> Freeze for Sort<'st>
impl<'st> RefUnwindSafe for Sort<'st>
impl<'st> Send for Sort<'st>
impl<'st> Sync for Sort<'st>
impl<'st> Unpin for Sort<'st>
impl<'st> UnwindSafe for Sort<'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