pub struct RangeFromExclusiveToExclusive<T> {
pub start: T,
pub end: T,
}Expand description
A range bounded exclusively below and above.
The RangeFromExclusiveToExclusive contains all values with x > start and x < end. It is empty unless start < end + 1`.
§Example
RangeFromExclusiveToExclusives can be created directly, as follows:
use more_ranges::RangeFromExclusiveToExclusive;
let range = RangeFromExclusiveToExclusive {
start: 1,
end: 4,
};Fields§
§start: TThe lower bound of the range (exclusive).
end: TThe upper bound of the range (exclusive).
Trait Implementations§
Source§impl<T: Clone> Clone for RangeFromExclusiveToExclusive<T>
impl<T: Clone> Clone for RangeFromExclusiveToExclusive<T>
Source§fn clone(&self) -> RangeFromExclusiveToExclusive<T>
fn clone(&self) -> RangeFromExclusiveToExclusive<T>
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<T: Debug> Debug for RangeFromExclusiveToExclusive<T>
impl<T: Debug> Debug for RangeFromExclusiveToExclusive<T>
Source§impl<'de, T> Deserialize<'de> for RangeFromExclusiveToExclusive<T>where
T: Deserialize<'de>,
Available on crate feature serde only.
impl<'de, T> Deserialize<'de> for RangeFromExclusiveToExclusive<T>where
T: Deserialize<'de>,
Available on crate feature
serde only.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<T: Hash> Hash for RangeFromExclusiveToExclusive<T>
impl<T: Hash> Hash for RangeFromExclusiveToExclusive<T>
Source§impl Index<RangeFromExclusiveToExclusive<usize>> for String
Available on crate feature alloc only.
impl Index<RangeFromExclusiveToExclusive<usize>> for String
Available on crate feature
alloc only.Source§impl<T> Index<RangeFromExclusiveToExclusive<usize>> for Vec<T>
Available on crate feature alloc only.
impl<T> Index<RangeFromExclusiveToExclusive<usize>> for Vec<T>
Available on crate feature
alloc only.Source§impl IndexMut<RangeFromExclusiveToExclusive<usize>> for String
Available on crate feature alloc only.
impl IndexMut<RangeFromExclusiveToExclusive<usize>> for String
Available on crate feature
alloc only.Source§impl<T> IndexMut<RangeFromExclusiveToExclusive<usize>> for Vec<T>
Available on crate feature alloc only.
impl<T> IndexMut<RangeFromExclusiveToExclusive<usize>> for Vec<T>
Available on crate feature
alloc only.Source§impl<T> IntoIterator for RangeFromExclusiveToExclusive<T>
impl<T> IntoIterator for RangeFromExclusiveToExclusive<T>
Source§impl<T: PartialEq> PartialEq for RangeFromExclusiveToExclusive<T>
impl<T: PartialEq> PartialEq for RangeFromExclusiveToExclusive<T>
Source§fn eq(&self, other: &RangeFromExclusiveToExclusive<T>) -> bool
fn eq(&self, other: &RangeFromExclusiveToExclusive<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a, T> RangeBounds<T> for RangeFromExclusiveToExclusive<&'a T>
impl<'a, T> RangeBounds<T> for RangeFromExclusiveToExclusive<&'a T>
Source§impl<T> RangeBounds<T> for RangeFromExclusiveToExclusive<T>
impl<T> RangeBounds<T> for RangeFromExclusiveToExclusive<T>
Source§impl<T> Serialize for RangeFromExclusiveToExclusive<T>where
T: Serialize,
Available on crate feature serde only.
impl<T> Serialize for RangeFromExclusiveToExclusive<T>where
T: Serialize,
Available on crate feature
serde only.impl<T: Copy> Copy for RangeFromExclusiveToExclusive<T>
impl<T: Eq> Eq for RangeFromExclusiveToExclusive<T>
impl<T> StructuralPartialEq for RangeFromExclusiveToExclusive<T>
Auto Trait Implementations§
impl<T> Freeze for RangeFromExclusiveToExclusive<T>where
T: Freeze,
impl<T> RefUnwindSafe for RangeFromExclusiveToExclusive<T>where
T: RefUnwindSafe,
impl<T> Send for RangeFromExclusiveToExclusive<T>where
T: Send,
impl<T> Sync for RangeFromExclusiveToExclusive<T>where
T: Sync,
impl<T> Unpin for RangeFromExclusiveToExclusive<T>where
T: Unpin,
impl<T> UnwindSafe for RangeFromExclusiveToExclusive<T>where
T: UnwindSafe,
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