pub struct SafeLongExample { /* private fields */ }
Implementations§
source§impl SafeLongExample
impl SafeLongExample
sourcepub fn new(safe_long_value: SafeLong) -> SafeLongExample
pub fn new(safe_long_value: SafeLong) -> SafeLongExample
Constructs a new instance of the type.
pub fn safe_long_value(&self) -> SafeLong
Trait Implementations§
source§impl Clone for SafeLongExample
impl Clone for SafeLongExample
source§fn clone(&self) -> SafeLongExample
fn clone(&self) -> SafeLongExample
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 SafeLongExample
impl Debug for SafeLongExample
source§impl<'de> Deserialize<'de> for SafeLongExample
impl<'de> Deserialize<'de> for SafeLongExample
source§fn deserialize<D>(d: D) -> Result<SafeLongExample, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<SafeLongExample, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SafeLongExample> for Builder
impl From<SafeLongExample> for Builder
source§fn from(_v: SafeLongExample) -> Builder
fn from(_v: SafeLongExample) -> Builder
Converts to this type from the input type.
source§impl Hash for SafeLongExample
impl Hash for SafeLongExample
source§impl Ord for SafeLongExample
impl Ord for SafeLongExample
source§fn cmp(&self, other: &SafeLongExample) -> Ordering
fn cmp(&self, other: &SafeLongExample) -> 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 SafeLongExample
impl PartialEq for SafeLongExample
source§fn eq(&self, other: &SafeLongExample) -> bool
fn eq(&self, other: &SafeLongExample) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SafeLongExample
impl PartialOrd for SafeLongExample
source§fn partial_cmp(&self, other: &SafeLongExample) -> Option<Ordering>
fn partial_cmp(&self, other: &SafeLongExample) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl Serialize for SafeLongExample
impl Serialize for SafeLongExample
impl Copy for SafeLongExample
impl Eq for SafeLongExample
impl StructuralPartialEq for SafeLongExample
Auto Trait Implementations§
impl Freeze for SafeLongExample
impl RefUnwindSafe for SafeLongExample
impl Send for SafeLongExample
impl Sync for SafeLongExample
impl Unpin for SafeLongExample
impl UnwindSafe for SafeLongExample
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<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.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.