pub struct FieldNames(/* private fields */);Expand description
An ordered list of field names in a struct.
Implementations§
Source§impl FieldNames
impl FieldNames
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = &FieldName>
pub fn iter(&self) -> impl ExactSizeIterator<Item = &FieldName>
Returns a borrowed iterator over the field names.
Trait Implementations§
Source§impl Clone for FieldNames
impl Clone for FieldNames
Source§fn clone(&self) -> FieldNames
fn clone(&self) -> FieldNames
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 FieldNames
impl Debug for FieldNames
Source§impl Default for FieldNames
impl Default for FieldNames
Source§fn default() -> FieldNames
fn default() -> FieldNames
Returns the “default value” for a type. Read more
Source§impl Display for FieldNames
impl Display for FieldNames
Source§impl From<&[&'static str]> for FieldNames
impl From<&[&'static str]> for FieldNames
Source§impl<F: Into<FieldName>> FromIterator<F> for FieldNames
impl<F: Into<FieldName>> FromIterator<F> for FieldNames
Source§fn from_iter<T: IntoIterator<Item = F>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = F>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl Hash for FieldNames
impl Hash for FieldNames
Source§impl Index<usize> for FieldNames
impl Index<usize> for FieldNames
Source§impl IntoIterator for FieldNames
impl IntoIterator for FieldNames
Source§impl PartialEq<&[&str]> for &FieldNames
impl PartialEq<&[&str]> for &FieldNames
Source§impl PartialEq<&[&str]> for FieldNames
impl PartialEq<&[&str]> for FieldNames
Source§impl PartialEq<&FieldNames> for FieldNames
impl PartialEq<&FieldNames> for FieldNames
Source§impl PartialEq for FieldNames
impl PartialEq for FieldNames
impl Eq for FieldNames
impl StructuralPartialEq for FieldNames
Auto Trait Implementations§
impl Freeze for FieldNames
impl RefUnwindSafe for FieldNames
impl Send for FieldNames
impl Sync for FieldNames
impl Unpin for FieldNames
impl UnwindSafe for FieldNames
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> 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<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