[−][src]Struct vrp_core::models::common::MultiDimLoad
Specifies multi dimensional load type.
Fields
load: [i32; 8]
Load data.
size: usize
Actual used size.
Implementations
impl MultiDimLoad
[src]
pub fn new(data: Vec<i32>) -> Self
[src]
Creates a new instance of MultiDimLoad
.
pub fn as_vec(&self) -> Vec<i32>
[src]
Converts to vector representation.
Trait Implementations
impl Add<MultiDimLoad> for MultiDimLoad
[src]
type Output = Self
The resulting type after applying the +
operator.
pub fn add(self, rhs: Self) -> Self::Output
[src]
impl Clone for MultiDimLoad
[src]
pub fn clone(&self) -> MultiDimLoad
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MultiDimLoad
[src]
impl Debug for MultiDimLoad
[src]
impl Default for MultiDimLoad
[src]
impl Eq for MultiDimLoad
[src]
impl Load for MultiDimLoad
[src]
pub fn is_not_empty(&self) -> bool
[src]
pub fn max_load(self, other: Self) -> Self
[src]
pub fn can_fit(&self, other: &Self) -> bool
[src]
pub fn ratio(&self, other: &Self) -> f64
[src]
impl Mul<f64> for MultiDimLoad
[src]
type Output = Self
The resulting type after applying the *
operator.
pub fn mul(self, value: f64) -> Self::Output
[src]
impl Ord for MultiDimLoad
[src]
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<MultiDimLoad> for MultiDimLoad
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<MultiDimLoad> for MultiDimLoad
[src]
pub fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Sub<MultiDimLoad> for MultiDimLoad
[src]
type Output = Self
The resulting type after applying the -
operator.
pub fn sub(self, rhs: Self) -> Self::Output
[src]
impl Sum<MultiDimLoad> for MultiDimLoad
[src]
pub fn sum<I: Iterator<Item = MultiDimLoad>>(iter: I) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for MultiDimLoad
impl Send for MultiDimLoad
impl Sync for MultiDimLoad
impl Unpin for MultiDimLoad
impl UnwindSafe for MultiDimLoad
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,