pub struct StringNode {
pub quote: Quote,
pub value: CompactString,
}Fields§
§quote: Quote§value: CompactStringImplementations§
Source§impl StringNode
impl StringNode
pub fn make(quote: Quote, value: CompactString) -> Box<Node>
pub fn loc( quote: Quote, value: CompactString, loc: Option<RangeLocation>, ) -> Box<Node>
Trait Implementations§
Source§impl Clone for StringNode
impl Clone for StringNode
Source§fn clone(&self) -> StringNode
fn clone(&self) -> StringNode
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 StringNode
impl Debug for StringNode
Source§impl<'de> Deserialize<'de> for StringNode
impl<'de> Deserialize<'de> for StringNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StringNode
impl PartialEq for StringNode
Source§impl Serialize for StringNode
impl Serialize for StringNode
impl StructuralPartialEq for StringNode
Auto Trait Implementations§
impl Freeze for StringNode
impl RefUnwindSafe for StringNode
impl Send for StringNode
impl Sync for StringNode
impl Unpin for StringNode
impl UnwindSafe for StringNode
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