Struct tea_codec::ImplDefault

source ·
#[repr(transparent)]
pub struct ImplDefault<T>(pub T) where T: ?Sized;

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T> AsMut<T> for ImplDefault<T>where T: ?Sized,

source§

fn as_mut(&mut self) -> &mut T

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T> AsRef<T> for ImplDefault<T>where T: ?Sized,

source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T> Borrow<T> for ImplDefault<T>where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for ImplDefault<T>where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Clone for ImplDefault<T>where T: ?Sized + Clone,

source§

fn clone(&self) -> ImplDefault<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for ImplDefault<T>where T: ?Sized,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> Deref for ImplDefault<T>where T: ?Sized,

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<T> DerefMut for ImplDefault<T>where T: ?Sized,

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl<'de, T> Deserialize<'de> for ImplDefault<T>where T: ?Sized + Deserialize<'de>,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T> Display for ImplDefault<T>where T: ?Sized,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> From<T> for ImplDefault<T>where TypeMark<T>: NotImplDefault,

source§

fn from(value: T) -> Self

Converts to this type from the input type.
source§

impl<T> Hash for ImplDefault<T>where T: ?Sized + Hash,

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
source§

impl<T> Into<T> for ImplDefault<T>where TypeMark<T>: NotImplDefault, T: NotError,

source§

fn into(self) -> T

Converts this type into the (usually inferred) input type.
source§

impl<T> Ord for ImplDefault<T>where T: ?Sized + Ord,

source§

fn cmp(&self, other: &ImplDefault<T>) -> Ordering

This method returns an Ordering between self and other. Read more
source§

impl<T> PartialEq<ImplDefault<T>> for ImplDefault<T>where T: ?Sized + PartialEq,

source§

fn eq(&self, other: &ImplDefault<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T> PartialOrd<ImplDefault<T>> for ImplDefault<T>where T: ?Sized + PartialOrd,

source§

fn partial_cmp(&self, other: &ImplDefault<T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<T> Serialize for ImplDefault<T>where T: ?Sized + Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Copy for ImplDefault<T>where T: ?Sized + Copy,

source§

impl<T> Eq for ImplDefault<T>where T: ?Sized + Eq,

source§

impl<T> StructuralEq for ImplDefault<T>where T: ?Sized,

source§

impl<T> StructuralPartialEq for ImplDefault<T>where T: ?Sized,

Auto Trait Implementations§

§

impl<T: ?Sized> RefUnwindSafe for ImplDefault<T>where T: RefUnwindSafe,

§

impl<T: ?Sized> Send for ImplDefault<T>where T: Send,

§

impl<T: ?Sized> Sync for ImplDefault<T>where T: Sync,

§

impl<T: ?Sized> Unpin for ImplDefault<T>where T: Unpin,

§

impl<T: ?Sized> UnwindSafe for ImplDefault<T>where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<'x, T> ArcIterExt<'x> for Twhere T: 'x,

source§

fn arc_iter<F, Iter>(self: &Arc<T>, selector: F) -> ArcIter<'x, T, Iter> where &'a Iter: for<'a> IntoIterator, <&'a Iter as IntoIterator>::Item: for<'a> Deref, <<&'a Iter as IntoIterator>::Item as Deref>::Target: for<'a> Clone, F: FnOnce(&T) -> &Iter,

source§

impl<T> AsRefIntoVec for Twhere T: AsRef<[u8]>,

source§

default fn as_ref_into_vec(self) -> Vec<u8, Global>

source§

impl<T> AsRefToString for Twhere T: AsRef<str>,

source§

default fn as_ref_to_string(self) -> Soo<str>

source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<!> for T

const: unstable · source§

fn from(t: !) -> T

Converts to this type from the input type.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<'a, T> FromBytes<'a> for Twhere T: IsFromBytes<'a>,

source§

default fn from_bytes(buf: &'a [u8]) -> Result<T, Error<Serde>>

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> PricedOrDefault for T

source§

default fn price(&self) -> Option<u64>

source§

impl<T> ToBytes for Twhere T: IsToBytes,

source§

impl<T> ToHex for Twhere T: AsRef<[u8]>,

source§

fn encode_hex<U>(&self) -> Uwhere U: FromIterator<char>,

Encode the hex strict representing self into the result. Lower case letters are used (e.g. f9b4ca)
source§

fn encode_hex_upper<U>(&self) -> Uwhere U: FromIterator<char>,

Encode the hex strict representing self into the result. Upper case letters are used (e.g. F9B4CA)
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,

source§

impl<T> NotError for Twhere TypeMark<T>: NotWrappedError,