pub struct Fields<'p> { /* private fields */ }
Implementations
sourceimpl<'f> Fields<'f>
impl<'f> Fields<'f>
pub fn iter(self) -> impl Iterator<Item = Field<'f>>
pub fn is_empty(self) -> bool
pub fn count(self) -> usize
pub fn parent_attrs(self) -> &'f [Attribute]
pub fn are_named(self) -> bool
pub fn are_unnamed(self) -> bool
pub fn are_unit(self) -> bool
pub fn match_tokens(self) -> TokenStream
Trait Implementations
impl<'p> Copy for Fields<'p>
Auto Trait Implementations
impl<'p> RefUnwindSafe for Fields<'p>
impl<'p> !Send for Fields<'p>
impl<'p> !Sync for Fields<'p>
impl<'p> Unpin for Fields<'p>
impl<'p> UnwindSafe for Fields<'p>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more