Struct call_by::Ref [−][src]
Taking a T
by Ref
erence means taking &'a T
as input to or output from a function.
Trait Implementations
impl<'a, T: 'a, S: 'a> As<'a, Ref, T> for S where
S: AsRef<T>,
[src]
S: AsRef<T>,
fn as_convention(this: &S) -> &T
[src]
impl<'a, T: 'a + ?Sized> By<'a, Ref> for T
[src]
type Type = &'a T
The type of Self
when called by Convention
.
fn copy(this: Self::Type) -> Self where
Self: Copy,
[src]
Self: Copy,
fn clone(this: Self::Type) -> Self where
Self: Clone,
[src]
Self: Clone,
impl Clone for Ref
[src]
impl Convention for Ref
[src]
impl<'a, T: 'a> Convert<'a, Mut, Ref> for T
[src]
impl<'a, T: 'a> Convert<'a, Ref, Ref> for T
[src]
impl<'a, T: 'a + Clone> Convert<'a, Ref, Val> for T
[src]
impl Copy for Ref
[src]
impl Debug for Ref
[src]
impl Default for Ref
[src]
impl Eq for Ref
[src]
impl Hash for Ref
[src]
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 Ord for Ref
[src]
fn cmp(&self, other: &Ref) -> 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 PartialEq<Ref> for Ref
[src]
impl PartialOrd<Ref> for Ref
[src]
fn partial_cmp(&self, other: &Ref) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Ref
[src]
impl StructuralPartialEq for Ref
[src]
Auto Trait Implementations
impl RefUnwindSafe for Ref
impl Send for Ref
impl Sync for Ref
impl Unpin for Ref
impl UnwindSafe for Ref
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<'a, T, S> As<'a, Ref, T> for S where
T: 'a,
S: 'a + AsRef<T>,
[src]
T: 'a,
S: 'a + AsRef<T>,
pub fn as_convention(&S) -> &T
[src]
impl<'a, T, S> As<'a, Val, T> for S where
S: Into<T>,
[src]
S: Into<T>,
pub fn as_convention(S) -> T
[src]
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<'a, T> By<'a, Mut> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a mut T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Mut>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Mut>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
[src]
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Ref>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Ref>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> By<'a, Val> for T
[src]
type Type = T
The type of Self
when called by Convention
.
pub fn copy(<T as By<'a, Val>>::Type) -> T where
T: Copy,
[src]
T: Copy,
pub fn clone(<T as By<'a, Val>>::Type) -> T where
T: Clone,
[src]
T: Clone,
impl<'a, T> Convert<'a, Mut, Mut> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Mut, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
[src]
T: 'a,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Ref, Val> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
impl<'a, T> Convert<'a, Val, Val> for 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,