[−][src]Struct bcder::encode::Iter
A wrapper for an iterator of values.
The wrapper is needed because a blanket impl on any iterator type is currently not possible.
Note that T
needs to be clone because we need to be able to restart
iterating at the beginning.
Methods
impl<T> Iter<T>
[src]
Trait Implementations
impl<T> Values for Iter<T> where
T: Clone + IntoIterator,
<T as IntoIterator>::Item: Values,
[src]
T: Clone + IntoIterator,
<T as IntoIterator>::Item: Values,
fn encoded_len(&self, mode: Mode) -> usize
[src]
fn write_encoded<W: Write>(
&self,
mode: Mode,
target: &mut W
) -> Result<(), Error>
[src]
&self,
mode: Mode,
target: &mut W
) -> Result<(), Error>
fn explicit(self, tag: Tag) -> Constructed<Self> where
Self: Sized,
[src]
Self: Sized,
Converts the encoder into one with an explicit tag.
fn to_captured(&self, mode: Mode) -> Captured
[src]
Captures the encoded values in the given mode.
impl<T: IntoIterator> IntoIterator for Iter<T>
[src]
type Item = <T as IntoIterator>::Item
The type of the elements being iterated over.
type IntoIter = <T as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, T: Clone + IntoIterator> IntoIterator for &'a Iter<T>
[src]
type Item = <T as IntoIterator>::Item
The type of the elements being iterated over.
type IntoIter = <T as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,