pub struct Literal {
pub value: Value,
}Expand description
A literal: a string, an integer, a float, a boolean or NULL.
PHP: Utopia\Query\AST\Literal (value, string|int|float|bool|null).
Fields§
§value: ValueThe value: a scalar or Value::Null.
Implementations§
Trait Implementations§
Source§impl From<Literal> for Expression
impl From<Literal> for Expression
impl StructuralPartialEq for Literal
Auto Trait Implementations§
impl !Freeze for Literal
impl Forget for Literal
impl Move for Literal
impl RefUnwindSafe for Literalwhere
Atomic<*mut ()>: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
OnceLock<Index>: RefUnwindSafe,
Atomic<u8>: RefUnwindSafe,
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnsafeUnpin for Literalwhere
&'static [u8]: UnsafeUnpin,
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
*const ArcInner<Repr<Object>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Repr<Object>>>: UnsafeUnpin,
*const Query is !null: UnsafeUnpin,
PhantomData<Query>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Literalwhere
&'static [u8]: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
Arc<Repr<Object>>: UnwindSafe,
BoxRaw<Query>: UnwindSafe,
RawVecInner: UnwindSafe,
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