pub struct LineWantValue<W: Write>(/* private fields */);Expand description
An incomplete line which has a name and is missing a value.
Implementations§
Source§impl<W: Write> LineWantValue<W>
impl<W: Write> LineWantValue<W>
Sourcepub fn value(self, value: &str) -> Result<ContentLineWriter<W>>
pub fn value(self, value: &str) -> Result<ContentLineWriter<W>>
Write a vale for the current content line.
Returns the original ContentLineWriter instance.
§Errors
Returns an error if the value is invalid or if an IO error occurs.
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for LineWantValue<W>where
W: Freeze,
impl<W> RefUnwindSafe for LineWantValue<W>where
W: RefUnwindSafe,
impl<W> Send for LineWantValue<W>where
W: Send,
impl<W> Sync for LineWantValue<W>where
W: Sync,
impl<W> Unpin for LineWantValue<W>where
W: Unpin,
impl<W> UnwindSafe for LineWantValue<W>where
W: UnwindSafe,
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