Struct promql_parser::parser::ast::StringLiteral
source · pub struct StringLiteral {
pub val: String,
}
Fields§
§val: String
Trait Implementations§
source§impl Clone for StringLiteral
impl Clone for StringLiteral
source§fn clone(&self) -> StringLiteral
fn clone(&self) -> StringLiteral
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 Debug for StringLiteral
impl Debug for StringLiteral
source§impl Display for StringLiteral
impl Display for StringLiteral
source§impl PartialEq<StringLiteral> for StringLiteral
impl PartialEq<StringLiteral> for StringLiteral
source§fn eq(&self, other: &StringLiteral) -> bool
fn eq(&self, other: &StringLiteral) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Prettier for StringLiteral
impl Prettier for StringLiteral
impl Eq for StringLiteral
impl StructuralEq for StringLiteral
impl StructuralPartialEq for StringLiteral
Auto Trait Implementations§
impl RefUnwindSafe for StringLiteral
impl Send for StringLiteral
impl Sync for StringLiteral
impl Unpin for StringLiteral
impl UnwindSafe for StringLiteral
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.