pub enum PatternValuePlace {
Placeholder,
Variable(Variable),
EntidOrInteger(i64),
IdentOrKeyword(ValueRc<Keyword>),
Constant(NonIntegerConstant),
}Expand description
The v part of a pattern can be much broader: it can represent
integers that aren’t entity IDs (particularly negative integers),
strings, and all the rest. We group those under Constant.
Variants§
Placeholder
Variable(Variable)
EntidOrInteger(i64)
IdentOrKeyword(ValueRc<Keyword>)
Constant(NonIntegerConstant)
Trait Implementations§
Source§impl Clone for PatternValuePlace
impl Clone for PatternValuePlace
Source§fn clone(&self) -> PatternValuePlace
fn clone(&self) -> PatternValuePlace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PatternValuePlace
impl Debug for PatternValuePlace
Source§impl Display for PatternValuePlace
impl Display for PatternValuePlace
impl Eq for PatternValuePlace
Source§impl From<Keyword> for PatternValuePlace
impl From<Keyword> for PatternValuePlace
Source§impl FromValue<PatternValuePlace> for PatternValuePlace
impl FromValue<PatternValuePlace> for PatternValuePlace
fn from_value(v: &ValueAndSpan) -> Option<PatternValuePlace>
Source§impl PartialEq for PatternValuePlace
impl PartialEq for PatternValuePlace
Source§fn eq(&self, other: &PatternValuePlace) -> bool
fn eq(&self, other: &PatternValuePlace) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatternValuePlace
Auto Trait Implementations§
impl Freeze for PatternValuePlace
impl RefUnwindSafe for PatternValuePlace
impl Send for PatternValuePlace
impl Sync for PatternValuePlace
impl Unpin for PatternValuePlace
impl UnsafeUnpin for PatternValuePlace
impl UnwindSafe for PatternValuePlace
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