Struct fbxcel::pull_parser::v7400::attribute::Attributes
source · [−]pub struct Attributes<'a, R> { /* private fields */ }
Expand description
Node attributes reader.
Implementations
sourceimpl<'a, R: 'a + Read> Attributes<'a, R>
impl<'a, R: 'a + Read> Attributes<'a, R>
sourcepub fn total_count(&self) -> u64
pub fn total_count(&self) -> u64
Returns the total number of attributes.
sourcepub fn rest_count(&self) -> u64
pub fn rest_count(&self) -> u64
Returns the number of the rest attributes.
sourcepub fn load_next<V>(&mut self, loader: V) -> Result<Option<V::Output>>where
V: LoadAttribute,
pub fn load_next<V>(&mut self, loader: V) -> Result<Option<V::Output>>where
V: LoadAttribute,
Lets loader load the next node attribute.
sourcepub fn load_next_buffered<V>(&mut self, loader: V) -> Result<Option<V::Output>>where
R: BufRead,
V: LoadAttribute,
pub fn load_next_buffered<V>(&mut self, loader: V) -> Result<Option<V::Output>>where
R: BufRead,
V: LoadAttribute,
Lets loader load the next node attribute.
This method prefers V::load_{binary,string}_buffered
to
V::load_{binary,string}
.
sourcepub fn iter<V, I>(&mut self, loaders: I) -> BorrowedIter<'_, 'a, R, I::IntoIter>ⓘNotable traits for BorrowedIter<'a, 'r, R, I>impl<'a, 'r, R, I, V> Iterator for BorrowedIter<'a, 'r, R, I>where
R: Read,
I: Iterator<Item = V>,
V: LoadAttribute, type Item = Result<V::Output>;
where
V: LoadAttribute,
I: IntoIterator<Item = V>,
pub fn iter<V, I>(&mut self, loaders: I) -> BorrowedIter<'_, 'a, R, I::IntoIter>ⓘNotable traits for BorrowedIter<'a, 'r, R, I>impl<'a, 'r, R, I, V> Iterator for BorrowedIter<'a, 'r, R, I>where
R: Read,
I: Iterator<Item = V>,
V: LoadAttribute, type Item = Result<V::Output>;
where
V: LoadAttribute,
I: IntoIterator<Item = V>,
R: Read,
I: Iterator<Item = V>,
V: LoadAttribute, type Item = Result<V::Output>;
Creates an iterator emitting attribute values.
sourcepub fn iter_buffered<V, I>(
&mut self,
loaders: I
) -> BorrowedIterBuffered<'_, 'a, R, I::IntoIter>ⓘNotable traits for BorrowedIterBuffered<'a, 'r, R, I>impl<'a, 'r, R, I, V> Iterator for BorrowedIterBuffered<'a, 'r, R, I>where
R: BufRead,
I: Iterator<Item = V>,
V: LoadAttribute, type Item = Result<V::Output>;
where
R: BufRead,
V: LoadAttribute,
I: IntoIterator<Item = V>,
pub fn iter_buffered<V, I>(
&mut self,
loaders: I
) -> BorrowedIterBuffered<'_, 'a, R, I::IntoIter>ⓘNotable traits for BorrowedIterBuffered<'a, 'r, R, I>impl<'a, 'r, R, I, V> Iterator for BorrowedIterBuffered<'a, 'r, R, I>where
R: BufRead,
I: Iterator<Item = V>,
V: LoadAttribute, type Item = Result<V::Output>;
where
R: BufRead,
V: LoadAttribute,
I: IntoIterator<Item = V>,
R: BufRead,
I: Iterator<Item = V>,
V: LoadAttribute, type Item = Result<V::Output>;
Creates an iterator emitting attribute values with buffered I/O.
sourcepub fn into_iter<V, I>(self, loaders: I) -> OwnedIter<'a, R, I::IntoIter>ⓘNotable traits for OwnedIter<'r, R, I>impl<'r, R, I, V> Iterator for OwnedIter<'r, R, I>where
R: Read,
I: Iterator<Item = V>,
V: LoadAttribute, type Item = Result<V::Output>;
where
V: LoadAttribute,
I: IntoIterator<Item = V>,
pub fn into_iter<V, I>(self, loaders: I) -> OwnedIter<'a, R, I::IntoIter>ⓘNotable traits for OwnedIter<'r, R, I>impl<'r, R, I, V> Iterator for OwnedIter<'r, R, I>where
R: Read,
I: Iterator<Item = V>,
V: LoadAttribute, type Item = Result<V::Output>;
where
V: LoadAttribute,
I: IntoIterator<Item = V>,
R: Read,
I: Iterator<Item = V>,
V: LoadAttribute, type Item = Result<V::Output>;
Creates an iterator emitting attribute values.
sourcepub fn into_iter_buffered<V, I>(
self,
loaders: I
) -> OwnedIterBuffered<'a, R, I::IntoIter>ⓘNotable traits for OwnedIterBuffered<'r, R, I>impl<'r, R, I, V> Iterator for OwnedIterBuffered<'r, R, I>where
R: BufRead,
I: Iterator<Item = V>,
V: LoadAttribute, type Item = Result<V::Output>;
where
R: BufRead,
V: LoadAttribute,
I: IntoIterator<Item = V>,
pub fn into_iter_buffered<V, I>(
self,
loaders: I
) -> OwnedIterBuffered<'a, R, I::IntoIter>ⓘNotable traits for OwnedIterBuffered<'r, R, I>impl<'r, R, I, V> Iterator for OwnedIterBuffered<'r, R, I>where
R: BufRead,
I: Iterator<Item = V>,
V: LoadAttribute, type Item = Result<V::Output>;
where
R: BufRead,
V: LoadAttribute,
I: IntoIterator<Item = V>,
R: BufRead,
I: Iterator<Item = V>,
V: LoadAttribute, type Item = Result<V::Output>;
Creates an iterator emitting attribute values with buffered I/O.
Trait Implementations
Auto Trait Implementations
impl<'a, R> !RefUnwindSafe for Attributes<'a, R>
impl<'a, R> !Send for Attributes<'a, R>
impl<'a, R> !Sync for Attributes<'a, R>
impl<'a, R> Unpin for Attributes<'a, R>
impl<'a, R> !UnwindSafe for Attributes<'a, R>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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