pub enum CharLimit {
Unlimited,
Limited(NonZeroUsize),
}Expand description
Character budget: 0 on the wire means unlimited.
Variants§
Implementations§
Trait Implementations§
impl Copy for CharLimit
Source§impl<'de> Deserialize<'de> for CharLimit
impl<'de> Deserialize<'de> for CharLimit
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CharLimit
impl StructuralPartialEq for CharLimit
Auto Trait Implementations§
impl Freeze for CharLimit
impl RefUnwindSafe for CharLimit
impl Send for CharLimit
impl Sync for CharLimit
impl Unpin for CharLimit
impl UnsafeUnpin for CharLimit
impl UnwindSafe for CharLimit
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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.