pub struct MaxResults(/* private fields */);
Implementations§
source§impl MaxResults
impl MaxResults
pub fn new(max_results: NonZeroU32) -> Self
Trait Implementations§
source§impl AppendToUrlQuery for MaxResults
impl AppendToUrlQuery for MaxResults
fn append_to_url_query(&self, url: &mut Url)
source§impl Clone for MaxResults
impl Clone for MaxResults
source§fn clone(&self) -> MaxResults
fn clone(&self) -> MaxResults
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 MaxResults
impl Debug for MaxResults
source§impl From<NonZero<u32>> for MaxResults
impl From<NonZero<u32>> for MaxResults
source§fn from(max_results: NonZeroU32) -> Self
fn from(max_results: NonZeroU32) -> Self
Converts to this type from the input type.
source§impl Ord for MaxResults
impl Ord for MaxResults
source§fn cmp(&self, other: &MaxResults) -> Ordering
fn cmp(&self, other: &MaxResults) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MaxResults
impl PartialEq for MaxResults
source§impl PartialOrd for MaxResults
impl PartialOrd for MaxResults
source§impl TryFrom<u32> for MaxResults
impl TryFrom<u32> for MaxResults
impl Copy for MaxResults
impl Eq for MaxResults
impl StructuralPartialEq for MaxResults
Auto Trait Implementations§
impl Freeze for MaxResults
impl RefUnwindSafe for MaxResults
impl Send for MaxResults
impl Sync for MaxResults
impl Unpin for MaxResults
impl UnwindSafe for MaxResults
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.