pub enum Argument {
Expression(Box<Expression>),
}Variants§
Expression(Box<Expression>)
Implementations§
Source§impl Argument
impl Argument
Sourcepub fn to_source_string<'a>(&self, source: &'a [u8]) -> Option<&'a str>
pub fn to_source_string<'a>(&self, source: &'a [u8]) -> Option<&'a str>
Convert this argument back to source text
Sourcepub fn is_string_or_macro_string(&self) -> bool
pub fn is_string_or_macro_string(&self) -> bool
Check if this argument is a string literal or macro wrapping a string
Sourcepub fn extract_string_value(&self) -> Option<String>
pub fn extract_string_value(&self) -> Option<String>
Extract string value from this argument, unwrapping macros
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnsafeUnpin for Argument
impl UnwindSafe for Argument
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