pub struct CodegenIdentRef(/* private fields */);Expand description
A string slice that’s guaranteed to be valid for any CodegenIdentUsage.
Implementations§
Source§impl CodegenIdentRef
impl CodegenIdentRef
Sourcepub fn from_field_name_hint(hint: StructFieldNameHint) -> Cow<'static, Self>
pub fn from_field_name_hint(hint: StructFieldNameHint) -> Cow<'static, Self>
Returns a suitable identifier for a struct field that doesn’t have an explicit name in the spec.
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 Borrow<CodegenIdentRef> for CodegenIdent
impl Borrow<CodegenIdentRef> for CodegenIdent
Source§fn borrow(&self) -> &CodegenIdentRef
fn borrow(&self) -> &CodegenIdentRef
Immutably borrows from an owned value. Read more
Source§impl Debug for CodegenIdentRef
impl Debug for CodegenIdentRef
Source§impl Ord for CodegenIdentRef
impl Ord for CodegenIdentRef
Source§impl PartialEq for CodegenIdentRef
impl PartialEq for CodegenIdentRef
Source§impl PartialOrd for CodegenIdentRef
impl PartialOrd for CodegenIdentRef
Source§impl ToOwned for CodegenIdentRef
impl ToOwned for CodegenIdentRef
Source§type Owned = CodegenIdent
type Owned = CodegenIdent
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Eq for CodegenIdentRef
impl StructuralPartialEq for CodegenIdentRef
Auto Trait Implementations§
impl Freeze for CodegenIdentRef
impl RefUnwindSafe for CodegenIdentRef
impl Send for CodegenIdentRef
impl !Sized for CodegenIdentRef
impl Sync for CodegenIdentRef
impl Unpin for CodegenIdentRef
impl UnsafeUnpin for CodegenIdentRef
impl UnwindSafe for CodegenIdentRef
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<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.