Struct rets_expression::LiteralNode
source · #[non_exhaustive]pub struct LiteralNode {
pub value: Value,
/* private fields */
}Expand description
A node representing a literal value
E.g. .TRUE.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value: ValueThe literal value
Implementations§
Trait Implementations§
source§impl Clone for LiteralNode
impl Clone for LiteralNode
source§fn clone(&self) -> LiteralNode
fn clone(&self) -> LiteralNode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl From<LiteralNode> for Expression
impl From<LiteralNode> for Expression
source§fn from(node: LiteralNode) -> Expression
fn from(node: LiteralNode) -> Expression
Converts to this type from the input type.
source§impl PartialEq<LiteralNode> for LiteralNode
impl PartialEq<LiteralNode> for LiteralNode
source§fn eq(&self, other: &LiteralNode) -> bool
fn eq(&self, other: &LiteralNode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for LiteralNode
impl StructuralEq for LiteralNode
impl StructuralPartialEq for LiteralNode
Auto Trait Implementations§
impl RefUnwindSafe for LiteralNode
impl Send for LiteralNode
impl Sync for LiteralNode
impl Unpin for LiteralNode
impl UnwindSafe for LiteralNode
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