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§impl Debug for PatternValuePlace
impl Debug 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
impl StructuralPartialEq for PatternValuePlace
Auto Trait Implementations§
impl !Send for PatternValuePlace
impl !Sync for PatternValuePlace
impl Freeze for PatternValuePlace
impl RefUnwindSafe 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