pub enum PatternNonValuePlace {
Placeholder,
Variable(Variable),
Entid(i64),
Ident(ValueRc<Keyword>),
}Expand description
e, a, tx can’t be values – no strings, no floats – and so they can only be variables, entity IDs, ident keywords, or placeholders. This encoding allows us to represent integers that aren’t entity IDs. That’ll get filtered out in the context of the database.
Variants§
Trait Implementations§
Source§impl Clone for PatternNonValuePlace
impl Clone for PatternNonValuePlace
Source§fn clone(&self) -> PatternNonValuePlace
fn clone(&self) -> PatternNonValuePlace
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 PatternNonValuePlace
impl Debug for PatternNonValuePlace
Source§impl Display for PatternNonValuePlace
impl Display for PatternNonValuePlace
impl Eq for PatternNonValuePlace
Source§impl From<Keyword> for PatternNonValuePlace
impl From<Keyword> for PatternNonValuePlace
Source§impl FromValue<PatternNonValuePlace> for PatternNonValuePlace
impl FromValue<PatternNonValuePlace> for PatternNonValuePlace
fn from_value(v: &ValueAndSpan) -> Option<PatternNonValuePlace>
Source§impl PartialEq for PatternNonValuePlace
impl PartialEq for PatternNonValuePlace
Source§fn eq(&self, other: &PatternNonValuePlace) -> bool
fn eq(&self, other: &PatternNonValuePlace) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatternNonValuePlace
Auto Trait Implementations§
impl Freeze for PatternNonValuePlace
impl RefUnwindSafe for PatternNonValuePlace
impl Send for PatternNonValuePlace
impl Sync for PatternNonValuePlace
impl Unpin for PatternNonValuePlace
impl UnsafeUnpin for PatternNonValuePlace
impl UnwindSafe for PatternNonValuePlace
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