pub enum StringExpr {
Lit(String),
Concat(Box<StringExpr>, Box<StringExpr>),
Sprintf(Box<StringExpr>, Vec<Expr>),
SvgFont(Vec<Expr>),
Arg(u32),
}Expand description
A string-valued expression.
Variants§
Lit(String)
Concat(Box<StringExpr>, Box<StringExpr>)
Sprintf(Box<StringExpr>, Vec<Expr>)
SvgFont(Vec<Expr>)
dpic SVG-backend helper. rpic does not emit backend preamble text, so this evaluates to a harmless empty string.
Arg(u32)
Trait Implementations§
Source§impl Clone for StringExpr
impl Clone for StringExpr
Source§fn clone(&self) -> StringExpr
fn clone(&self) -> StringExpr
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 StringExpr
impl Debug for StringExpr
Source§impl PartialEq for StringExpr
impl PartialEq for StringExpr
Source§fn eq(&self, other: &StringExpr) -> bool
fn eq(&self, other: &StringExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StringExpr
Auto Trait Implementations§
impl Freeze for StringExpr
impl RefUnwindSafe for StringExpr
impl Send for StringExpr
impl Sync for StringExpr
impl Unpin for StringExpr
impl UnsafeUnpin for StringExpr
impl UnwindSafe for StringExpr
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