pub struct LiteralExpression<'a> {
pub arg: Literal<'a>,
pub function: Option<FunctionRef<'a>>,
pub attributes: Attributes<'a>,
}Expand description
An expression whose operand is a literal.
Fields§
§arg: Literal<'a>The operand.
function: Option<FunctionRef<'a>>The function applied to it, if any.
attributes: Attributes<'a>The expression’s attributes.
Implementations§
Source§impl LiteralExpression<'_>
impl LiteralExpression<'_>
Sourcepub fn into_owned(self) -> LiteralExpression<'static>
pub fn into_owned(self) -> LiteralExpression<'static>
The same expression with every string owned.
Trait Implementations§
Source§impl<'a> Clone for LiteralExpression<'a>
impl<'a> Clone for LiteralExpression<'a>
Source§impl<'a> Debug for LiteralExpression<'a>
impl<'a> Debug for LiteralExpression<'a>
impl<'a> Eq for LiteralExpression<'a>
Source§impl<'a> Hash for LiteralExpression<'a>
impl<'a> Hash for LiteralExpression<'a>
Source§impl<'a> PartialEq for LiteralExpression<'a>
impl<'a> PartialEq for LiteralExpression<'a>
Source§impl Serialize for LiteralExpression<'_>
Available on crate feature serde only.
impl Serialize for LiteralExpression<'_>
Available on crate feature
serde only.impl<'a> StructuralPartialEq for LiteralExpression<'a>
Auto Trait Implementations§
impl<'a> Freeze for LiteralExpression<'a>
impl<'a> RefUnwindSafe for LiteralExpression<'a>
impl<'a> Send for LiteralExpression<'a>
impl<'a> Sync for LiteralExpression<'a>
impl<'a> Unpin for LiteralExpression<'a>
impl<'a> UnsafeUnpin for LiteralExpression<'a>
impl<'a> UnwindSafe for LiteralExpression<'a>
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