Struct tagger::AttrWriter
source · pub struct AttrWriter<'a, T>(_);
Expand description
Create attributes.
Implementations§
source§impl<'a, T: Write> AttrWriter<'a, T>
impl<'a, T: Write> AttrWriter<'a, T>
pub fn attr(&mut self, a: impl Display, b: impl Display) -> Result
sourcepub fn writer(&mut self) -> &mut T
👎Deprecated: please use writer_escapable or writer_safe
instead
pub fn writer(&mut self) -> &mut T
writer_escapable or writer_safe
insteadWARNING: The user can escape xml here and inject any xml elements.
pub fn writer_safe(&mut self) -> EscapeGuard<&mut T>
sourcepub fn writer_escapable(&mut self) -> &mut T
pub fn writer_escapable(&mut self) -> &mut T
WARNING: The user can escape xml here and inject any xml elements.
pub fn put_raw(&mut self, a: impl Display) -> Result
sourcepub fn put_raw_escapable(&mut self, a: impl Display) -> Result
pub fn put_raw_escapable(&mut self, a: impl Display) -> Result
WARNING: The user can escape xml here and inject any xml elements.
pub fn path( &mut self, a: impl FnOnce(&mut PathBuilder<'_, T>) -> Result ) -> Result
pub fn points( &mut self, a: impl FnOnce(&mut PointsBuilder<'_, T>) -> Result ) -> Result
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for AttrWriter<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for AttrWriter<'a, T>where T: Send,
impl<'a, T> Sync for AttrWriter<'a, T>where T: Sync,
impl<'a, T> Unpin for AttrWriter<'a, T>
impl<'a, T> !UnwindSafe for AttrWriter<'a, T>
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