pub struct Body(_);Expand description
Implementations
sourceimpl Body
impl Body
sourcepub fn into_inner(self) -> Vec<Structure>
pub fn into_inner(self) -> Vec<Structure>
Consumes self and returns the wrapped Vec<Structure>.
sourcepub fn builder() -> BodyBuilder
pub fn builder() -> BodyBuilder
Creates a new BodyBuilder to start building a new Body.
sourcepub fn iter(&self) -> Iter<'_>ⓘNotable traits for Iter<'a>impl<'a> Iterator for Iter<'a> type Item = &'a Structure;
pub fn iter(&self) -> Iter<'_>ⓘNotable traits for Iter<'a>impl<'a> Iterator for Iter<'a> type Item = &'a Structure;
Returns an iterator over all Structures of the Body.
sourcepub fn iter_mut(&mut self) -> IterMut<'_>ⓘNotable traits for IterMut<'a>impl<'a> Iterator for IterMut<'a> type Item = &'a mut Structure;
pub fn iter_mut(&mut self) -> IterMut<'_>ⓘNotable traits for IterMut<'a>impl<'a> Iterator for IterMut<'a> type Item = &'a mut Structure;
Returns an iterator over all Structures of the Body that allows modifying the
structures.
sourcepub fn attributes(&self) -> AttributeIter<'_>ⓘNotable traits for AttributeIter<'a>impl<'a> Iterator for AttributeIter<'a> type Item = &'a Attribute;
pub fn attributes(&self) -> AttributeIter<'_>ⓘNotable traits for AttributeIter<'a>impl<'a> Iterator for AttributeIter<'a> type Item = &'a Attribute;
Returns an iterator over all Attributes of the Body.
sourcepub fn attributes_mut(&mut self) -> AttributeIterMut<'_>ⓘNotable traits for AttributeIterMut<'a>impl<'a> Iterator for AttributeIterMut<'a> type Item = &'a mut Attribute;
pub fn attributes_mut(&mut self) -> AttributeIterMut<'_>ⓘNotable traits for AttributeIterMut<'a>impl<'a> Iterator for AttributeIterMut<'a> type Item = &'a mut Attribute;
Returns an iterator over all Attributes of the Body that allows modifying the
attributes.
sourcepub fn blocks(&self) -> BlockIter<'_>ⓘNotable traits for BlockIter<'a>impl<'a> Iterator for BlockIter<'a> type Item = &'a Block;
pub fn blocks(&self) -> BlockIter<'_>ⓘNotable traits for BlockIter<'a>impl<'a> Iterator for BlockIter<'a> type Item = &'a Block;
Returns an iterator over all Blocks of the Body.
sourcepub fn blocks_mut(&mut self) -> BlockIterMut<'_>ⓘNotable traits for BlockIterMut<'a>impl<'a> Iterator for BlockIterMut<'a> type Item = &'a mut Block;
pub fn blocks_mut(&mut self) -> BlockIterMut<'_>ⓘNotable traits for BlockIterMut<'a>impl<'a> Iterator for BlockIterMut<'a> type Item = &'a mut Block;
Returns an iterator over all Blocks of the Body that allows modifying the blocks.
Trait Implementations
sourceimpl<S> FromIterator<S> for Body where
S: Into<Structure>,
impl<S> FromIterator<S> for Body where
S: Into<Structure>,
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = S>,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = S>,
Creates a value from an iterator. Read more
sourceimpl IntoIterator for Body
impl IntoIterator for Body
impl StructuralPartialEq for Body
Auto Trait Implementations
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnwindSafe for Body
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