pub struct NamedDistance {
pub name: String,
pub distance: f64,
}Expand description
Named distance structure for references
Fields§
§name: String§distance: f64Trait Implementations§
Source§impl Clone for NamedDistance
impl Clone for NamedDistance
Source§fn clone(&self) -> NamedDistance
fn clone(&self) -> NamedDistance
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 NamedDistance
impl Debug for NamedDistance
Source§impl<'de> Deserialize<'de> for NamedDistance
impl<'de> Deserialize<'de> for NamedDistance
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
Auto Trait Implementations§
impl Freeze for NamedDistance
impl RefUnwindSafe for NamedDistance
impl Send for NamedDistance
impl Sync for NamedDistance
impl Unpin for NamedDistance
impl UnwindSafe for NamedDistance
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