pub struct ClassWriter<'a, 'b> { /* private fields */ }Expand description
A writer that separates class list entries with single spaces.
Class creates one per class list when the attribute value is emitted
and passes it to ClassEntries::write_entries. Absent entries are
skipped without producing a separator.
Implementations§
Source§impl<'a, 'b> ClassWriter<'a, 'b>
impl<'a, 'b> ClassWriter<'a, 'b>
Sourcepub fn entry(&mut self, cx: &Cx, value: impl ClassViewParts) -> &mut Self
pub fn entry(&mut self, cx: &Cx, value: impl ClassViewParts) -> &mut Self
Appends an entry, separated from the previous entry by a single space.
An absent entry (for example None or an empty string) is skipped
entirely.
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for ClassWriter<'a, 'b>
impl<'a, 'b> !Sync for ClassWriter<'a, 'b>
impl<'a, 'b> !UnwindSafe for ClassWriter<'a, 'b>
impl<'a, 'b> Freeze for ClassWriter<'a, 'b>
impl<'a, 'b> Send for ClassWriter<'a, 'b>
impl<'a, 'b> Unpin for ClassWriter<'a, 'b>
impl<'a, 'b> UnsafeUnpin for ClassWriter<'a, 'b>
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