pub struct CodegenIdent(/* private fields */);Expand description
A string that’s statically guaranteed to be valid for any
CodegenIdentUsage.
Implementations§
Source§impl CodegenIdent
impl CodegenIdent
Sourcepub fn from_segments(segments: &[InlineIrTypePathSegment<'_>]) -> Self
pub fn from_segments(segments: &[InlineIrTypePathSegment<'_>]) -> Self
Creates an identifier from an inline type path.
Trait Implementations§
Source§impl AsRef<CodegenIdentRef> for CodegenIdent
impl AsRef<CodegenIdentRef> for CodegenIdent
Source§fn as_ref(&self) -> &CodegenIdentRef
fn as_ref(&self) -> &CodegenIdentRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for CodegenIdent
impl Clone for CodegenIdent
Source§fn clone(&self) -> CodegenIdent
fn clone(&self) -> CodegenIdent
Returns a duplicate 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 Debug for CodegenIdent
impl Debug for CodegenIdent
Source§impl Deref for CodegenIdent
impl Deref for CodegenIdent
Source§impl Hash for CodegenIdent
impl Hash for CodegenIdent
Source§impl Ord for CodegenIdent
impl Ord for CodegenIdent
Source§fn cmp(&self, other: &CodegenIdent) -> Ordering
fn cmp(&self, other: &CodegenIdent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CodegenIdent
impl PartialEq for CodegenIdent
Source§impl PartialOrd for CodegenIdent
impl PartialOrd for CodegenIdent
impl Eq for CodegenIdent
impl StructuralPartialEq for CodegenIdent
Auto Trait Implementations§
impl Freeze for CodegenIdent
impl RefUnwindSafe for CodegenIdent
impl Send for CodegenIdent
impl Sync for CodegenIdent
impl Unpin for CodegenIdent
impl UnwindSafe for CodegenIdent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more