[−][src]Struct rustupolis::tuple::Tuple
Implementations
impl Tuple
[src]
pub fn new(elements: &[E]) -> Tuple
[src]
Creates a new tuple from a given array of elements.
pub fn from_vec(v: Vec<E>) -> Tuple
[src]
Creates a new tuple from a given vector of elements.
pub fn first(&self) -> &E
[src]
Returns a reference to the first element of the tuple.
pub fn rest(&self) -> Tuple
[src]
Returns a tuple of all but the first element of the original tuple.
pub fn is_empty(&self) -> bool
[src]
Returns true if the tuple is empty, false otherwise.
pub fn is_defined(&self) -> bool
[src]
Returns true if all elements are defined, i.e: none of them are wildcards. Returns false if the tuple contains any wildcards.
pub fn matches(&self, other: &Tuple) -> bool
[src]
Returns true if this tuple matches the other.
pub fn range(&self) -> (Bound<Tuple>, Bound<Tuple>)
[src]
Returns a range over this tuple.
Trait Implementations
impl Clone for Tuple
[src]
impl Debug for Tuple
[src]
impl Display for Tuple
[src]
impl Eq for Tuple
[src]
impl Ord for Tuple
[src]
fn cmp(&self, other: &Tuple) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Tuple> for Tuple
[src]
impl PartialOrd<Tuple> for Tuple
[src]
fn partial_cmp(&self, other: &Tuple) -> Option<Ordering>
[src]
fn lt(&self, other: &Tuple) -> bool
[src]
fn le(&self, other: &Tuple) -> bool
[src]
fn gt(&self, other: &Tuple) -> bool
[src]
fn ge(&self, other: &Tuple) -> bool
[src]
impl StructuralEq for Tuple
[src]
impl StructuralPartialEq for Tuple
[src]
Auto Trait Implementations
impl RefUnwindSafe for Tuple
impl Send for Tuple
impl Sync for Tuple
impl Unpin for Tuple
impl UnwindSafe for Tuple
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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.
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>,