pub enum TypeConstraintCommand {
Show 13 variants
Help,
Suggest,
With,
Unit,
Trait,
Minimum,
Maximum,
Lower,
Upper,
Decimals,
Option,
Options,
Length,
}Expand description
Constraint command for type definitions. Derived from lexer tokens; no string matching.
Variants§
Implementations§
Source§impl TypeConstraintCommand
impl TypeConstraintCommand
pub const ALL: &[Self]
pub fn continuation_shape(self) -> ContinuationShape
Sourcepub fn is_data_constraint(self) -> bool
pub fn is_data_constraint(self) -> bool
Data-declaration -> commands (not list-expression postfix queries).
Trait Implementations§
Source§impl Clone for TypeConstraintCommand
impl Clone for TypeConstraintCommand
impl Copy for TypeConstraintCommand
Source§impl Debug for TypeConstraintCommand
impl Debug for TypeConstraintCommand
Source§impl<'de> Deserialize<'de> for TypeConstraintCommand
impl<'de> Deserialize<'de> for TypeConstraintCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TypeConstraintCommand
impl Display for TypeConstraintCommand
impl Eq for TypeConstraintCommand
Source§impl Hash for TypeConstraintCommand
impl Hash for TypeConstraintCommand
Source§impl PartialEq for TypeConstraintCommand
impl PartialEq for TypeConstraintCommand
Source§impl Serialize for TypeConstraintCommand
impl Serialize for TypeConstraintCommand
impl StructuralPartialEq for TypeConstraintCommand
Auto Trait Implementations§
impl Freeze for TypeConstraintCommand
impl RefUnwindSafe for TypeConstraintCommand
impl Send for TypeConstraintCommand
impl Sync for TypeConstraintCommand
impl Unpin for TypeConstraintCommand
impl UnsafeUnpin for TypeConstraintCommand
impl UnwindSafe for TypeConstraintCommand
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.