pub struct Literal<'i> {
pub value: &'i str,
pub span: Span,
}Fields§
§value: &'i str§span: SpanTrait Implementations§
Source§impl<'source> VisitWith<'source> for Literal<'source>
impl<'source> VisitWith<'source> for Literal<'source>
fn visit_with<V: Visitor<'source>>(&self, visitor: &mut V)
fn visit_children_with<V: Visitor<'source>>(&self, _visitor: &mut V)
impl<'i> StructuralPartialEq for Literal<'i>
Auto Trait Implementations§
impl<'i> Freeze for Literal<'i>
impl<'i> RefUnwindSafe for Literal<'i>
impl<'i> Send for Literal<'i>
impl<'i> Sync for Literal<'i>
impl<'i> Unpin for Literal<'i>
impl<'i> UnwindSafe for Literal<'i>
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