pub struct NoExtras;Expand description
Empty extras.
This type can be used if extras are not required.
It is also the default type parameter of Uri.
Trait Implementations
sourceimpl DeserializationError for NoExtras
impl DeserializationError for NoExtras
type Error = Infallible
type Error = Infallible
The error returned when deserialization fails.
sourceimpl DeserializeParams<'_> for NoExtras
impl DeserializeParams<'_> for NoExtras
type DeserializationState = EmptyState
type DeserializationState = EmptyState
State used when deserializing.
sourceimpl Ord for NoExtras
impl Ord for NoExtras
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<NoExtras> for NoExtras
impl PartialOrd<NoExtras> for NoExtras
sourcefn partial_cmp(&self, other: &NoExtras) -> Option<Ordering>
fn partial_cmp(&self, other: &NoExtras) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl<'a> SerializeParams for &'a NoExtras
impl<'a> SerializeParams for &'a NoExtras
type Key = Infallible
type Key = Infallible
Parameter name. Read more
type Value = Infallible
type Value = Infallible
Parameter value.
type Iterator = Empty<(<&'a NoExtras as SerializeParams>::Key, <&'a NoExtras as SerializeParams>::Value)>
type Iterator = Empty<(<&'a NoExtras as SerializeParams>::Key, <&'a NoExtras as SerializeParams>::Value)>
Iterator over key-value pairs
sourcefn serialize_params(self) -> Self::Iterator
fn serialize_params(self) -> Self::Iterator
Constructs the iterator over key-value pairs.
impl Copy for NoExtras
impl Eq for NoExtras
impl StructuralEq for NoExtras
impl StructuralPartialEq for NoExtras
Auto Trait Implementations
impl RefUnwindSafe for NoExtras
impl Send for NoExtras
impl Sync for NoExtras
impl Unpin for NoExtras
impl UnwindSafe for NoExtras
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more