[−][src]Enum bounds::Bounds
Variants
Methods
impl<T> Bounds<T>
[src]
pub fn remove_upper_bound(self) -> Bounds<T>
[src]
pub fn remove_lower_bound(self) -> Bounds<T>
[src]
impl<T: Sub<Output = T> + Clone + Zero> Bounds<T>
[src]
impl<T: Eq + Ord> Bounds<T>
[src]
pub fn merge(self, other: Self) -> Self
[src]
pub fn range(start: Bound<T>, end: Bound<T>) -> Self
[src]
pub fn intersects(&self, other: &Bounds<T>) -> bool
[src]
pub fn compare_to(&self, other: &Bounds<T>) -> Comparison
[src]
Trait Implementations
impl<T> From<Range<T>> for Bounds<T>
[src]
impl<T> From<RangeTo<T>> for Bounds<T>
[src]
impl<T> From<RangeFrom<T>> for Bounds<T>
[src]
impl<T> From<RangeFull> for Bounds<T>
[src]
impl<T: Clone> Clone for Bounds<T>
[src]
impl<T: Eq> Eq for Bounds<T>
[src]
impl<T: PartialEq> PartialEq<Bounds<T>> for Bounds<T>
[src]
impl<T: Debug> Debug for Bounds<T>
[src]
impl<T: Div<T, Output = T> + Clone + Eq + Ord + Zero + Debug> Div<Bounds<T>> for Bounds<T>
[src]
type Output = Option<Self>
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Self::Output
[src]
impl<T: Neg<Output = T> + Add<T, Output = T> + Clone + Eq + Ord> Sub<Bounds<T>> for Bounds<T>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self::Output
[src]
impl<T: Add<T, Output = T> + Clone + Eq + Ord> Add<Bounds<T>> for Bounds<T>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self::Output
[src]
impl<T: Mul<T, Output = T> + Clone + Eq + Ord + Zero + Debug> Mul<Bounds<T>> for Bounds<T>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self::Output
[src]
impl<T: Neg<Output = T>> Neg for Bounds<T>
[src]
type Output = Bounds<T>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<T> StructuralPartialEq for Bounds<T>
[src]
impl<T> StructuralEq for Bounds<T>
[src]
Auto Trait Implementations
impl<T> Send for Bounds<T> where
T: Send,
T: Send,
impl<T> Sync for Bounds<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Bounds<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Bounds<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Bounds<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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, 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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,