Enum sieve::SpamStatus
source · pub enum SpamStatus {
Unknown,
Ham,
MaybeSpam(f64),
Spam,
}
Variants§
Implementations§
source§impl SpamStatus
impl SpamStatus
pub fn from_number(number: u32) -> Self
Trait Implementations§
source§impl Clone for SpamStatus
impl Clone for SpamStatus
source§fn clone(&self) -> SpamStatus
fn clone(&self) -> SpamStatus
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 SpamStatus
impl Debug for SpamStatus
source§impl From<i32> for SpamStatus
impl From<i32> for SpamStatus
source§impl From<u32> for SpamStatus
impl From<u32> for SpamStatus
source§impl From<usize> for SpamStatus
impl From<usize> for SpamStatus
source§impl PartialEq for SpamStatus
impl PartialEq for SpamStatus
source§fn eq(&self, other: &SpamStatus) -> bool
fn eq(&self, other: &SpamStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SpamStatus
impl StructuralPartialEq for SpamStatus
Auto Trait Implementations§
impl Freeze for SpamStatus
impl RefUnwindSafe for SpamStatus
impl Send for SpamStatus
impl Sync for SpamStatus
impl Unpin for SpamStatus
impl UnwindSafe for SpamStatus
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