Struct harper_core::WordMetadata
source · pub struct WordMetadata { /* private fields */ }
Implementations§
source§impl WordMetadata
impl WordMetadata
sourcepub fn or(&self, other: &Self) -> Self
pub fn or(&self, other: &Self) -> Self
Produce a copy of self
with the known properties of other
set.
pub fn is_noun(&self) -> bool
pub fn is_verb(&self) -> bool
pub fn is_adjective(&self) -> bool
pub fn is_adverb(&self) -> bool
pub fn is_possessive_noun(&self) -> bool
pub fn is_plural_noun(&self) -> bool
pub fn is_proper_noun(&self) -> bool
pub fn is_linking_verb(&self) -> bool
Trait Implementations§
source§impl Clone for WordMetadata
impl Clone for WordMetadata
source§fn clone(&self) -> WordMetadata
fn clone(&self) -> WordMetadata
Returns a copy 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 WordMetadata
impl Debug for WordMetadata
source§impl Default for WordMetadata
impl Default for WordMetadata
source§fn default() -> WordMetadata
fn default() -> WordMetadata
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WordMetadata
impl<'de> Deserialize<'de> for WordMetadata
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for WordMetadata
impl PartialEq for WordMetadata
source§impl PartialOrd for WordMetadata
impl PartialOrd for WordMetadata
source§impl Serialize for WordMetadata
impl Serialize for WordMetadata
impl Copy for WordMetadata
impl Eq for WordMetadata
impl StructuralPartialEq for WordMetadata
Auto Trait Implementations§
impl Freeze for WordMetadata
impl RefUnwindSafe for WordMetadata
impl Send for WordMetadata
impl Sync for WordMetadata
impl Unpin for WordMetadata
impl UnwindSafe for WordMetadata
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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