pub struct NumaDistance {
pub destination: i32,
pub distance: i32,
}Fields§
§destination: i32§distance: i32Implementations§
Source§impl NumaDistance
impl NumaDistance
pub fn new(destination: i32, distance: i32) -> NumaDistance
Trait Implementations§
Source§impl Clone for NumaDistance
impl Clone for NumaDistance
Source§fn clone(&self) -> NumaDistance
fn clone(&self) -> NumaDistance
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 NumaDistance
impl Debug for NumaDistance
Source§impl Default for NumaDistance
impl Default for NumaDistance
Source§fn default() -> NumaDistance
fn default() -> NumaDistance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NumaDistance
impl<'de> Deserialize<'de> for NumaDistance
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 NumaDistance
impl PartialEq for NumaDistance
Source§impl Serialize for NumaDistance
impl Serialize for NumaDistance
impl StructuralPartialEq for NumaDistance
Auto Trait Implementations§
impl Freeze for NumaDistance
impl RefUnwindSafe for NumaDistance
impl Send for NumaDistance
impl Sync for NumaDistance
impl Unpin for NumaDistance
impl UnwindSafe for NumaDistance
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