Struct indradb::Weight
[−]
[src]
pub struct Weight(pub f32);
An edge weight.
Edge weights must be between -1.0 and 1.0.
Methods
impl Weight
[src]
fn new(w: f32) -> Result<Self, ValidationError>
[src]
Trait Implementations
impl Clone for Weight
[src]
fn clone(&self) -> Weight
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more