pub struct StaticVisitor<'a> {
pub statics: Vec<Cow<'a, str>>,
}Expand description
Visitor implementation that only collect static content.
Fields§
§statics: Vec<Cow<'a, str>>Implementations§
Source§impl StaticVisitor<'_>
impl StaticVisitor<'_>
Sourcepub fn new() -> Self
pub fn new() -> Self
Create new StaticVisitor.
Sourcepub fn into_owned(self) -> StaticVisitor<'static>
pub fn into_owned(self) -> StaticVisitor<'static>
Convert statics into owned String.
Trait Implementations§
Source§impl Default for StaticVisitor<'_>
impl Default for StaticVisitor<'_>
Auto Trait Implementations§
impl<'a> Freeze for StaticVisitor<'a>
impl<'a> RefUnwindSafe for StaticVisitor<'a>
impl<'a> Send for StaticVisitor<'a>
impl<'a> Sync for StaticVisitor<'a>
impl<'a> Unpin for StaticVisitor<'a>
impl<'a> UnsafeUnpin for StaticVisitor<'a>
impl<'a> UnwindSafe for StaticVisitor<'a>
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