pub struct SentencesPrimitive {
pub min_count: u8,
pub max_count: u8,
pub capitalize_first: bool,
pub concatenator: String,
pub disallowed_chars: Vec<char>,
}Fields§
§min_count: u8§max_count: u8§capitalize_first: bool§concatenator: String§disallowed_chars: Vec<char>Implementations§
Source§impl SentencesPrimitive
impl SentencesPrimitive
Sourcepub fn min_count(&mut self, min_count: u8) -> &mut Self
pub fn min_count(&mut self, min_count: u8) -> &mut Self
Set the lower bound of the integer range. Default is 0.
Sourcepub fn max_count(&mut self, max_count: u8) -> &mut Self
pub fn max_count(&mut self, max_count: u8) -> &mut Self
Set the upper bound of the integer range. Default is 9.
pub fn capitalize_first(&mut self, capitalize_first: bool) -> &mut Self
pub fn concatenator(&mut self, concatenator: &str) -> &mut Self
pub fn disallowed_char(&mut self, disallowed_char: char) -> &mut Self
pub fn disallowed_chars(&mut self, disallowed_chars: Vec<char>) -> &mut Self
Trait Implementations§
Source§impl Clone for SentencesPrimitive
impl Clone for SentencesPrimitive
Source§fn clone(&self) -> SentencesPrimitive
fn clone(&self) -> SentencesPrimitive
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SentencesPrimitive
impl Debug for SentencesPrimitive
Source§impl Default for SentencesPrimitive
impl Default for SentencesPrimitive
Source§impl PrimitiveTrait for SentencesPrimitive
impl PrimitiveTrait for SentencesPrimitive
type PrimitiveResult = String
fn clear_primitive(&mut self)
fn type_description(&self, result_can_be_none: bool) -> &str
fn solution_description(&self, result_can_be_none: bool) -> String
fn stop_word_result_is_none(&self, result_can_be_none: bool) -> Option<String>
fn grammar(&self) -> Grammar
fn parse_to_primitive(&self, content: &str) -> Result<Self::PrimitiveResult>
Auto Trait Implementations§
impl Freeze for SentencesPrimitive
impl RefUnwindSafe for SentencesPrimitive
impl Send for SentencesPrimitive
impl Sync for SentencesPrimitive
impl Unpin for SentencesPrimitive
impl UnwindSafe for SentencesPrimitive
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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