pub enum Terms<'a> {
Default,
Strings {
falsey_precise_strings: &'a [&'a str],
falsey_lowercase_strings: &'a [&'a str],
truey_precise_strings: &'a [&'a str],
truey_lowercase_strings: &'a [&'a str],
},
}Expand description
Directs custom truthyness behaviour.
Variants§
Default
Use the built-in comparison strings.
Strings
Use the given *precise_strings and, optionally, the given
*lower_strings to evaluate the truthyness of a given string.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Terms<'a>
impl<'a> RefUnwindSafe for Terms<'a>
impl<'a> Send for Terms<'a>
impl<'a> Sync for Terms<'a>
impl<'a> Unpin for Terms<'a>
impl<'a> UnsafeUnpin for Terms<'a>
impl<'a> UnwindSafe for Terms<'a>
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