pub struct Clause { /* private fields */ }Expand description
A subordinate clause attached to a sentence.
Implementations§
Source§impl Clause
impl Clause
Sourcepub fn which(verb: &str) -> Self
pub fn which(verb: &str) -> Self
Create a clause introduced by “which {verb}” (e.g., “which impacts”).
Sourcepub fn with_intro(intro: &str) -> Self
pub fn with_intro(intro: &str) -> Self
Create a clause with a custom introduction.
Sourcepub fn amount(self, n: usize) -> Self
pub fn amount(self, n: usize) -> Self
Set the count for this clause (e.g., “6 direct consumers”).
Sourcepub fn truncate(self, n: usize) -> Self
pub fn truncate(self, n: usize) -> Self
Truncate the list to show at most n items, with “and N more” suffix.
Sourcepub fn conjunction(self, conjunction: Conjunction) -> Self
pub fn conjunction(self, conjunction: Conjunction) -> Self
Set the conjunction for joining list items (default: And).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clause
impl RefUnwindSafe for Clause
impl Send for Clause
impl Sync for Clause
impl Unpin for Clause
impl UnsafeUnpin for Clause
impl UnwindSafe for Clause
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