Struct range_set_blaze::Priority
source · pub struct Priority<T, V, VR>{ /* private fields */ }Expand description
cmk doc
Implementations§
source§impl<T, V, VR> Priority<T, V, VR>
impl<T, V, VR> Priority<T, V, VR>
sourcepub fn new(range_value: (RangeInclusive<T>, VR), priority_number: usize) -> Self
pub fn new(range_value: (RangeInclusive<T>, VR), priority_number: usize) -> Self
cmk doc
source§impl<T, V, VR> Priority<T, V, VR>
impl<T, V, VR> Priority<T, V, VR>
sourcepub fn priority_number(&self) -> usize
pub fn priority_number(&self) -> usize
Returns the priority number.
sourcepub fn range_value(&self) -> &(RangeInclusive<T>, VR)
pub fn range_value(&self) -> &(RangeInclusive<T>, VR)
Returns a reference to range_value.
sourcepub fn set_range_value(&mut self, value: (RangeInclusive<T>, VR))
pub fn set_range_value(&mut self, value: (RangeInclusive<T>, VR))
Updates range_value with the given value.
sourcepub fn into_range_value(self) -> (RangeInclusive<T>, VR)
pub fn into_range_value(self) -> (RangeInclusive<T>, VR)
Consumes Priority and returns range_value.
sourcepub fn set_range(&mut self, range: RangeInclusive<T>)
pub fn set_range(&mut self, range: RangeInclusive<T>)
Updates the range part of range_value.
sourcepub fn into_range(self) -> RangeInclusive<T>
pub fn into_range(self) -> RangeInclusive<T>
Consumes Priority and returns the range part of range_value.
sourcepub fn start_and_end(&self) -> (T, T)
pub fn start_and_end(&self) -> (T, T)
Returns the start and end of the range. (Assuming direct access to start and end)
Trait Implementations§
source§impl<'a, T, V, VR> Ord for Priority<T, V, VR>
impl<'a, T, V, VR> Ord for Priority<T, V, VR>
source§impl<T, V, VR> PartialEq for Priority<T, V, VR>
impl<T, V, VR> PartialEq for Priority<T, V, VR>
source§impl<'a, T, V, VR> PartialOrd for Priority<T, V, VR>
impl<'a, T, V, VR> PartialOrd for Priority<T, V, VR>
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 moreimpl<'a, T, V, VR> Eq for Priority<T, V, VR>
Auto Trait Implementations§
impl<T, V, VR> Freeze for Priority<T, V, VR>
impl<T, V, VR> RefUnwindSafe for Priority<T, V, VR>
impl<T, V, VR> Send for Priority<T, V, VR>
impl<T, V, VR> Sync for Priority<T, V, VR>
impl<T, V, VR> Unpin for Priority<T, V, VR>
impl<T, V, VR> UnwindSafe for Priority<T, V, VR>
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