pub enum StreamBound {
Literal(usize),
Expr(Expr),
}Expand description
A non-negative stream bound.
Variants§
Implementations§
Source§impl StreamBound
impl StreamBound
Sourcepub fn literal(value: usize) -> StreamBound
pub fn literal(value: usize) -> StreamBound
Create a literal bound.
Sourcepub fn expr(expr: Expr) -> StreamBound
pub fn expr(expr: Expr) -> StreamBound
Create an expression bound.
Trait Implementations§
Source§impl Clone for StreamBound
impl Clone for StreamBound
Source§fn clone(&self) -> StreamBound
fn clone(&self) -> StreamBound
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamBound
impl Debug for StreamBound
Source§impl<'de> Deserialize<'de> for StreamBound
impl<'de> Deserialize<'de> for StreamBound
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamBound, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StreamBound, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Expr> for StreamBound
impl From<Expr> for StreamBound
Source§fn from(value: Expr) -> StreamBound
fn from(value: Expr) -> StreamBound
Converts to this type from the input type.
Source§impl From<i32> for StreamBound
impl From<i32> for StreamBound
Source§fn from(value: i32) -> StreamBound
fn from(value: i32) -> StreamBound
Converts to this type from the input type.
Source§impl From<i64> for StreamBound
impl From<i64> for StreamBound
Source§fn from(value: i64) -> StreamBound
fn from(value: i64) -> StreamBound
Converts to this type from the input type.
Source§impl From<u8> for StreamBound
impl From<u8> for StreamBound
Source§fn from(value: u8) -> StreamBound
fn from(value: u8) -> StreamBound
Converts to this type from the input type.
Source§impl From<u16> for StreamBound
impl From<u16> for StreamBound
Source§fn from(value: u16) -> StreamBound
fn from(value: u16) -> StreamBound
Converts to this type from the input type.
Source§impl From<u32> for StreamBound
impl From<u32> for StreamBound
Source§fn from(value: u32) -> StreamBound
fn from(value: u32) -> StreamBound
Converts to this type from the input type.
Source§impl From<usize> for StreamBound
impl From<usize> for StreamBound
Source§fn from(value: usize) -> StreamBound
fn from(value: usize) -> StreamBound
Converts to this type from the input type.
Source§impl PartialEq for StreamBound
impl PartialEq for StreamBound
Source§impl Serialize for StreamBound
impl Serialize for StreamBound
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for StreamBound
Auto Trait Implementations§
impl Freeze for StreamBound
impl RefUnwindSafe for StreamBound
impl Send for StreamBound
impl Sync for StreamBound
impl Unpin for StreamBound
impl UnsafeUnpin for StreamBound
impl UnwindSafe for StreamBound
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