pub struct UnspecifiedType<'input> { /* private fields */ }
Expand description
An unspecified type.
Implementations§
Source§impl<'input> UnspecifiedType<'input>
impl<'input> UnspecifiedType<'input>
Sourcepub fn cmp_id(a: &UnspecifiedType<'_>, b: &UnspecifiedType<'_>) -> Ordering
pub fn cmp_id(a: &UnspecifiedType<'_>, b: &UnspecifiedType<'_>) -> Ordering
Compare the identifying information of two types.
Unspecified types are considered equal if they have the same name.
This can be used to sort, and to determine if two types refer to the same definition (even if there are differences in the definitions).
Trait Implementations§
Source§impl<'input> Clone for UnspecifiedType<'input>
impl<'input> Clone for UnspecifiedType<'input>
Source§fn clone(&self) -> UnspecifiedType<'input>
fn clone(&self) -> UnspecifiedType<'input>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'input> Debug for UnspecifiedType<'input>
impl<'input> Debug for UnspecifiedType<'input>
Source§impl<'input> Default for UnspecifiedType<'input>
impl<'input> Default for UnspecifiedType<'input>
Source§fn default() -> UnspecifiedType<'input>
fn default() -> UnspecifiedType<'input>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'input> Freeze for UnspecifiedType<'input>
impl<'input> RefUnwindSafe for UnspecifiedType<'input>
impl<'input> Send for UnspecifiedType<'input>
impl<'input> Sync for UnspecifiedType<'input>
impl<'input> Unpin for UnspecifiedType<'input>
impl<'input> UnwindSafe for UnspecifiedType<'input>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more