[−][src]Struct type_name_value::Named
An owned value which has name Name. This type is unique to this Named, so it can be used to enforce compile-time coherency
Implementations
impl<T, Name> Named<T, Name>
[src]
pub fn unname(self) -> T
[src]
pub fn unname_ref(&self) -> &T
[src]
pub unsafe fn unname_ref_mut(&mut self) -> &mut T
[src]
Safety
Must uphold whatever invariant the Named protects
Trait Implementations
impl<T, Name> Debug for Named<T, Name> where
T: Debug,
[src]
T: Debug,
impl<T, Name> Eq for Named<T, Name> where
T: Eq,
[src]
T: Eq,
impl<T, Name> Hash for Named<T, Name> where
T: Hash,
[src]
T: Hash,
fn hash<__HTName>(&self, __state: &mut __HTName) where
__HTName: Hasher,
[src]
__HTName: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T, Name> Ord for Named<T, Name> where
T: Ord,
[src]
T: Ord,
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T, Name> PartialEq<Named<T, Name>> for Named<T, Name> where
T: PartialEq,
[src]
T: PartialEq,
impl<T, Name> PartialOrd<Named<T, Name>> for Named<T, Name> where
T: PartialOrd,
[src]
T: PartialOrd,
Auto Trait Implementations
impl<T, Name> RefUnwindSafe for Named<T, Name> where
Name: RefUnwindSafe,
T: RefUnwindSafe,
Name: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, Name> Send for Named<T, Name> where
Name: Send,
T: Send,
Name: Send,
T: Send,
impl<T, Name> Sync for Named<T, Name> where
Name: Sync,
T: Sync,
Name: Sync,
T: Sync,
impl<T, Name> Unpin for Named<T, Name> where
Name: Unpin,
T: Unpin,
Name: Unpin,
T: Unpin,
impl<T, Name> UnwindSafe for Named<T, Name> where
Name: UnwindSafe,
T: UnwindSafe,
Name: UnwindSafe,
T: UnwindSafe,
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,
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, 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.
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>,