pub struct StringValue { /* private fields */ }Expand description
StringValue represents a string.
this is necessary because it needs to store some additional information for the AST, like the info necessary for Parse::span.
let mut buffer = CharStream::new("\"Hello, world!\"".to_owned()).build();
let value = StringValue::parse(&mut buffer);
assert!(value.is_ok());Trait Implementations§
Source§impl Clone for StringValue
impl Clone for StringValue
Source§fn clone(&self) -> StringValue
fn clone(&self) -> StringValue
Returns a duplicate 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 StringValue
impl Debug for StringValue
Source§impl From<StringValue> for String
impl From<StringValue> for String
Source§fn from(string: StringValue) -> Self
fn from(string: StringValue) -> Self
Converts to this type from the input type.
Source§impl Parse for StringValue
impl Parse for StringValue
Auto Trait Implementations§
impl Freeze for StringValue
impl RefUnwindSafe for StringValue
impl Send for StringValue
impl Sync for StringValue
impl Unpin for StringValue
impl UnwindSafe for StringValue
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