[−][src]Struct borrow_as::Ref
Immutable reference.
Trait Implementations
impl<T: ?Sized> AsRef<T> for Ref<T>
[src]
impl<T: ?Sized> Borrow<T> for Ref<T>
[src]
impl<T: Debug + ?Sized> Debug for Ref<T>
[src]
impl<T: ?Sized> Deref for Ref<T>
[src]
impl<T: ?Sized> Display for Ref<T> where
&'a T: Debug,
[src]
&'a T: Debug,
impl<T: ?Sized> Eq for Ref<T> where
&'a T: Eq + PartialEq<Self>,
[src]
&'a T: Eq + PartialEq<Self>,
impl<T: ?Sized> Hash for Ref<T> where
&'a T: Hash,
[src]
&'a T: Hash,
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: ?Sized> Ord for Ref<T> where
&'a T: Ord + Eq + PartialOrd<Self>,
[src]
&'a T: Ord + Eq + PartialOrd<Self>,
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T: ?Sized, U: ?Sized> PartialEq<U> for Ref<T> where
&'a T: PartialEq<U>,
[src]
&'a T: PartialEq<U>,
impl<T: ?Sized, U: ?Sized> PartialOrd<U> for Ref<T> where
&'a T: PartialOrd<U>,
[src]
&'a T: PartialOrd<U>,
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for Ref<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> !Send for Ref<T>
impl<T> !Sync for Ref<T>
impl<T: ?Sized> Unpin for Ref<T>
impl<T: ?Sized> UnwindSafe for Ref<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,