Struct pravega_client_shared::SegmentWithRange
source · pub struct SegmentWithRange {
pub scoped_segment: ScopedSegment,
pub min_key: OrderedFloat<f64>,
pub max_key: OrderedFloat<f64>,
}
Fields§
§scoped_segment: ScopedSegment
§min_key: OrderedFloat<f64>
§max_key: OrderedFloat<f64>
Implementations§
source§impl SegmentWithRange
impl SegmentWithRange
sourcepub fn new(
scoped_segment: ScopedSegment,
min_key: OrderedFloat<f64>,
max_key: OrderedFloat<f64>
) -> Self
pub fn new( scoped_segment: ScopedSegment, min_key: OrderedFloat<f64>, max_key: OrderedFloat<f64> ) -> Self
Constructs a new SegmentWithRange
.
source§impl SegmentWithRange
impl SegmentWithRange
pub fn get_segment(&self) -> Segment
Trait Implementations§
source§impl Clone for SegmentWithRange
impl Clone for SegmentWithRange
source§fn clone(&self) -> SegmentWithRange
fn clone(&self) -> SegmentWithRange
Returns a copy 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 Debug for SegmentWithRange
impl Debug for SegmentWithRange
source§impl<'de> Deserialize<'de> for SegmentWithRange
impl<'de> Deserialize<'de> for SegmentWithRange
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 Display for SegmentWithRange
impl Display for SegmentWithRange
source§impl From<&str> for SegmentWithRange
impl From<&str> for SegmentWithRange
source§impl Hash for SegmentWithRange
impl Hash for SegmentWithRange
source§impl PartialEq for SegmentWithRange
impl PartialEq for SegmentWithRange
source§fn eq(&self, other: &SegmentWithRange) -> bool
fn eq(&self, other: &SegmentWithRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SegmentWithRange
impl Serialize for SegmentWithRange
impl Eq for SegmentWithRange
impl StructuralPartialEq for SegmentWithRange
Auto Trait Implementations§
impl RefUnwindSafe for SegmentWithRange
impl Send for SegmentWithRange
impl Sync for SegmentWithRange
impl Unpin for SegmentWithRange
impl UnwindSafe for SegmentWithRange
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