pub struct TextListFactory<'f, B>where
B: BulletPointFactory,{ /* private fields */ }Expand description
Produces a text list
Implementations§
Source§impl<'f, B> TextListFactory<'f, B>where
B: BulletPointFactory,
impl<'f, B> TextListFactory<'f, B>where
B: BulletPointFactory,
Sourcepub fn new<F>(bullet_producer: F) -> TextListFactory<'f, B>where
F: IntoBulletPointFactory<Factory = B>,
pub fn new<F>(bullet_producer: F) -> TextListFactory<'f, B>where
F: IntoBulletPointFactory<Factory = B>,
Create a new text list using a writer and bullet producer
Sourcepub fn set_separator(&mut self, separator: &str)
pub fn set_separator(&mut self, separator: &str)
Set the separator to use
Sourcepub fn set_indent(&mut self, indent: &str)
pub fn set_indent(&mut self, indent: &str)
Set the indent to use
Sourcepub fn with_separator(self, separator: &str) -> TextListFactory<'f, B>
pub fn with_separator(self, separator: &str) -> TextListFactory<'f, B>
Use the separator
Sourcepub fn with_indent(self, indent: &str) -> TextListFactory<'f, B>
pub fn with_indent(self, indent: &str) -> TextListFactory<'f, B>
Use the indent
pub fn element<O>(self, element: O) -> TextListFactory<'f, B>where
O: ToString + 'f,
pub fn elements<O, I>(self, elements: I) -> TextListFactory<'f, B>where
O: ToString + 'f,
I: IntoIterator<Item = O>,
Sourcepub fn sublist<F>(self, func: F) -> TextListFactory<'f, B>
pub fn sublist<F>(self, func: F) -> TextListFactory<'f, B>
call the factory within a sub list
Trait Implementations§
Auto Trait Implementations§
impl<'f, B> Freeze for TextListFactory<'f, B>where
B: Freeze,
impl<'f, B> !RefUnwindSafe for TextListFactory<'f, B>
impl<'f, B> !Send for TextListFactory<'f, B>
impl<'f, B> !Sync for TextListFactory<'f, B>
impl<'f, B> Unpin for TextListFactory<'f, B>where
B: Unpin,
impl<'f, B> !UnwindSafe for TextListFactory<'f, 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
Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more