pub struct RangeMap { /* private fields */ }Implementations§
Source§impl RangeMap
 
impl RangeMap
Sourcepub fn new(output: StringConstant) -> Self
 
pub fn new(output: StringConstant) -> Self
Constructs a new instance of the type.
Sourcepub fn start(&self) -> Option<&DoubleConstant>
 
pub fn start(&self) -> Option<&DoubleConstant>
Inclusive start value. If not specified, the start is the prior range’s end value, or negative infinity.
Sourcepub fn end(&self) -> Option<&DoubleConstant>
 
pub fn end(&self) -> Option<&DoubleConstant>
Exclusive end value. If not specified, the end value is the next range’s start value, or positive infinity.
Sourcepub fn output(&self) -> &StringConstant
 
pub fn output(&self) -> &StringConstant
The value to map to if the input value is within the range.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RangeMap
 
impl<'de> Deserialize<'de> for RangeMap
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 Ord for RangeMap
 
impl Ord for RangeMap
Source§impl PartialOrd for RangeMap
 
impl PartialOrd for RangeMap
impl Eq for RangeMap
Auto Trait Implementations§
impl Freeze for RangeMap
impl RefUnwindSafe for RangeMap
impl Send for RangeMap
impl Sync for RangeMap
impl Unpin for RangeMap
impl UnwindSafe for RangeMap
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
 
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
 
fn into_request(self) -> Request<T>
Wrap the input message 
T in a tonic::Request