#[repr(u8)]pub enum NodeWeight {
Simple = 0,
FastDecay = 1,
MediumDecay = 2,
SlowDecay = 3,
Compound = 4,
}Expand description
Node weight option
Variants§
Simple = 0
Simple (Immediately decay to 0)
FastDecay = 1
Complex with weight decay factor 0.3
MediumDecay = 2
Complex with weight decay factor 0.5
SlowDecay = 3
Complex with weight decay factor 0.7
Compound = 4
Compound (No decay)
Trait Implementations§
Source§impl Clone for NodeWeight
impl Clone for NodeWeight
Source§fn clone(&self) -> NodeWeight
fn clone(&self) -> NodeWeight
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 NodeWeight
impl Debug for NodeWeight
Source§impl<'de> Deserialize<'de> for NodeWeight
impl<'de> Deserialize<'de> for NodeWeight
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 Hash for NodeWeight
impl Hash for NodeWeight
Source§impl PartialEq for NodeWeight
impl PartialEq for NodeWeight
Source§impl Serialize for NodeWeight
impl Serialize for NodeWeight
impl Copy for NodeWeight
impl Eq for NodeWeight
impl StructuralPartialEq for NodeWeight
Auto Trait Implementations§
impl Freeze for NodeWeight
impl RefUnwindSafe for NodeWeight
impl Send for NodeWeight
impl Sync for NodeWeight
impl Unpin for NodeWeight
impl UnwindSafe for NodeWeight
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> CallHasher for T
impl<T> CallHasher for T
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