#[repr(transparent)]
pub struct Ref<'a, T, How, Fallback1, Fallback2>(pub Ref2<'a, T, How, Fallback1, Fallback2>) where &'a T: Copy, T: ?Sized;
Expand description

Reference wrapper to make into string conversion with fallback.

Tuple Fields§

§0: Ref2<'a, T, How, Fallback1, Fallback2>

Implementations§

Source§

impl<'a, T, How, Fallback1, Fallback2> Ref<'a, T, How, Fallback1, Fallback2>

Source

pub fn inner(self) -> &'a T

Just a constructor.

Trait Implementations§

Source§

impl<'a, T, How, Fallback1, Fallback2> Clone for Ref<'a, T, How, Fallback1, Fallback2>

Source§

fn clone(&self) -> Self

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<'a, T, How, Fallback1, Fallback2> Deref for Ref<'a, T, How, Fallback1, Fallback2>

Source§

type Target = Ref2<'a, T, How, Fallback1, Fallback2>

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl<'a, T, How, Fallback1, Fallback2> From<&'a T> for Ref<'a, T, How, Fallback1, Fallback2>

Source§

fn from(src: &'a T) -> Self

Converts to this type from the input type.
Source§

impl<'a, T, How, Fallback1, Fallback2> ToStringWithFallback<'a, How, Fallback1, Fallback2> for Ref<'a, T, How, Fallback1, Fallback2>
where T: ToStringWith<How> + ?Sized, How: 'static, Fallback1: 'static, Fallback2: 'static,

Source§

fn to_string_with_fallback(self) -> Cow<'a, str>

Converts the type to a string using the fallback formatting.

Source§

impl<'a, T, How, Fallback1, Fallback2> Copy for Ref<'a, T, How, Fallback1, Fallback2>

Auto Trait Implementations§

§

impl<'a, T, How, Fallback1, Fallback2> Freeze for Ref<'a, T, How, Fallback1, Fallback2>
where &'a T: Sized, T: ?Sized,

§

impl<'a, T, How, Fallback1, Fallback2> RefUnwindSafe for Ref<'a, T, How, Fallback1, Fallback2>

§

impl<'a, T, How, Fallback1, Fallback2> Send for Ref<'a, T, How, Fallback1, Fallback2>
where &'a T: Sized, T: Sync + ?Sized,

§

impl<'a, T, How, Fallback1, Fallback2> Sync for Ref<'a, T, How, Fallback1, Fallback2>
where &'a T: Sized, T: Sync + ?Sized,

§

impl<'a, T, How, Fallback1, Fallback2> Unpin for Ref<'a, T, How, Fallback1, Fallback2>
where &'a T: Sized, T: ?Sized,

§

impl<'a, T, How, Fallback1, Fallback2> UnwindSafe for Ref<'a, T, How, Fallback1, Fallback2>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<C, E> EntryToVal<C> for E
where C: Collection<Entry = E>,

Source§

type Val = <C as Collection>::Val

The type of values stored in the collection. This might be distinct from Entry in complex collections. For example, in a HashMap, while Entry might be a ( key, value ) tuple, Val might only be the value part.
Source§

fn entry_to_val(self) -> <E as EntryToVal<C>>::Val

Converts an entry into a value representation specific to the type of collection. This conversion is crucial for handling operations on entries, especially when they need to be treated or accessed as individual values, such as retrieving the value part from a key-value pair in a hash map.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> TypeName for T
where T: ?Sized,

Source§

fn type_name(&self) -> &'static str

Return name of type of variable.
Source§

impl<C, Val> ValToEntry<C> for Val
where C: CollectionValToEntry<Val>,

Source§

fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry

Invokes the val_to_entry function of the CollectionValToEntry trait to convert the value to an entry.

Source§

type Entry = <C as CollectionValToEntry<Val>>::Entry

Represents the type of entry that corresponds to the value within the collection.
Source§

impl<T> CellRepr for T
where T: Copy + 'static,

Source§

impl<T> RowKey for T
where T: ?Sized,