Struct extendr_api::prelude::utils::constrained::Array
source · pub struct Array<'n, T>(/* private fields */);Expand description
Array of length equal to the value tied to 'n.
Implementations§
source§impl<'n, T> Array<'n, T>
impl<'n, T> Array<'n, T>
sourcepub fn from_ref<'a>(slice: &'a [T], size: Size<'n>) -> &'a Array<'n, T>
pub fn from_ref<'a>(slice: &'a [T], size: Size<'n>) -> &'a Array<'n, T>
Returns a constrained array after checking that its length matches size.
Trait Implementations§
source§impl<'n, T> PartialEq for Array<'n, T>where
T: PartialEq,
impl<'n, T> PartialEq for Array<'n, T>where
T: PartialEq,
source§impl<'n, T> PartialOrd for Array<'n, T>where
T: PartialOrd,
impl<'n, T> PartialOrd for Array<'n, T>where
T: PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more