pub struct LinkAttributeWrite<'a, 'b, T: ?Sized>(/* private fields */);
Expand description
Helper for writing link format attributes; created by calling LinkFormatWrite::link
.
Implementations§
Source§impl<'a, 'b, T: Write + ?Sized> LinkAttributeWrite<'a, 'b, T>
impl<'a, 'b, T: Write + ?Sized> LinkAttributeWrite<'a, 'b, T>
Sourcepub fn attr(self, key: &'static str, value: &str) -> Self
pub fn attr(self, key: &'static str, value: &str) -> Self
Adds an attribute to the link, only quoting the value if it contains non-ascii-alphanumeric characters.
Sourcepub fn attr_u32(self, key: &'static str, value: u32) -> Self
pub fn attr_u32(self, key: &'static str, value: u32) -> Self
Adds an attribute to the link that has u32 value.
Sourcepub fn attr_u16(self, key: &'static str, value: u16) -> Self
pub fn attr_u16(self, key: &'static str, value: u16) -> Self
Adds an attribute to the link that has u16 value.
Sourcepub fn attr_quoted(self, key: &'static str, value: &str) -> Self
pub fn attr_quoted(self, key: &'static str, value: &str) -> Self
Adds an attribute to the link, unconditionally quoting the value.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b, T> Freeze for LinkAttributeWrite<'a, 'b, T>where
T: ?Sized,
impl<'a, 'b, T> RefUnwindSafe for LinkAttributeWrite<'a, 'b, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, 'b, T> Send for LinkAttributeWrite<'a, 'b, T>
impl<'a, 'b, T> Sync for LinkAttributeWrite<'a, 'b, T>
impl<'a, 'b, T> Unpin for LinkAttributeWrite<'a, 'b, T>where
T: ?Sized,
impl<'a, 'b, T> !UnwindSafe for LinkAttributeWrite<'a, 'b, 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