Enum serde_derive_internals::ast::Data
source · [−]Expand description
The fields of a struct or enum.
Analagous to syn::Data
.
Variants
Enum(Vec<Variant<'a>>)
Struct(Style, Vec<Field<'a>>)
Implementations
sourceimpl<'a> Data<'a>
impl<'a> Data<'a>
pub fn all_fields(&'a self) -> Box<dyn Iterator<Item = &'a Field<'a>> + 'a>
pub fn has_getter(&self) -> bool
Auto Trait Implementations
impl<'a> RefUnwindSafe for Data<'a>
impl<'a> !Send for Data<'a>
impl<'a> !Sync for Data<'a>
impl<'a> Unpin for Data<'a>
impl<'a> UnwindSafe for Data<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more