Enum syndicate::rewrite::CheckedCaveat
source · pub enum CheckedCaveat {
Alts(Vec<CheckedRewrite>),
Reject(Pattern),
}Expand description
A safety-checked Caveat: none of the errors enumerated in
CaveatError apply.
Variants§
Alts(Vec<CheckedRewrite>)
Reject(Pattern)
Implementations§
Trait Implementations§
source§impl Clone for CheckedCaveat
impl Clone for CheckedCaveat
source§fn clone(&self) -> CheckedCaveat
fn clone(&self) -> CheckedCaveat
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 Debug for CheckedCaveat
impl Debug for CheckedCaveat
source§impl Hash for CheckedCaveat
impl Hash for CheckedCaveat
source§impl Ord for CheckedCaveat
impl Ord for CheckedCaveat
source§fn cmp(&self, other: &CheckedCaveat) -> Ordering
fn cmp(&self, other: &CheckedCaveat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CheckedCaveat
impl PartialEq for CheckedCaveat
source§fn eq(&self, other: &CheckedCaveat) -> bool
fn eq(&self, other: &CheckedCaveat) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for CheckedCaveat
impl PartialOrd for CheckedCaveat
source§fn partial_cmp(&self, other: &CheckedCaveat) -> Option<Ordering>
fn partial_cmp(&self, other: &CheckedCaveat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for CheckedCaveat
impl StructuralPartialEq for CheckedCaveat
Auto Trait Implementations§
impl !RefUnwindSafe for CheckedCaveat
impl Send for CheckedCaveat
impl Sync for CheckedCaveat
impl Unpin for CheckedCaveat
impl !UnwindSafe for CheckedCaveat
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