Struct tycho::partial::container::PartialContainer [−][src]
Fields
pointer: PartialPointer
The container start pointer.
head: u64
The local container head pointer.
param: T::ItemParam
Parameters for the container.
Implementations
impl<T: PartialContainerType> PartialContainer<T>
[src]
pub fn finished(&self) -> bool
[src]
Returns if the local pointer head has reached the end of the container.
pub fn next<R: Read + Seek>(
&mut self,
reader: &mut PartialReader<R>
) -> TychoResult<Option<T::ItemType>>
[src]
&mut self,
reader: &mut PartialReader<R>
) -> TychoResult<Option<T::ItemType>>
Get the next item in the container
pub fn iter<'x, R: Read + Seek>(
&'x mut self,
reader: &'x mut PartialReader<R>
) -> PartialContainerIterator<'x, T, R>ⓘNotable traits for PartialContainerIterator<'x, T, R>
impl<'x, T: PartialContainerType, R: Read + Seek> Iterator for PartialContainerIterator<'x, T, R> type Item = T::ItemType;
[src]
&'x mut self,
reader: &'x mut PartialReader<R>
) -> PartialContainerIterator<'x, T, R>ⓘ
Notable traits for PartialContainerIterator<'x, T, R>
impl<'x, T: PartialContainerType, R: Read + Seek> Iterator for PartialContainerIterator<'x, T, R> type Item = T::ItemType;
Get an iterator of the container.
pub fn collect<R: Read + Seek>(
&mut self,
reader: &mut PartialReader<R>
) -> TychoResult<Vec<T::ItemType>>
[src]
&mut self,
reader: &mut PartialReader<R>
) -> TychoResult<Vec<T::ItemType>>
Collect all items within the container.
pub fn top(&mut self)
[src]
Move the head to the top/start
impl<T: PartialContainerTypeAsync> PartialContainer<T>
[src]
pub async fn next_async<R: AsyncRead + AsyncSeek + Unpin + Send>(
&mut self,
reader: &mut PartialReader<R>
) -> TychoResult<Option<T::ItemType>>
[src]
&mut self,
reader: &mut PartialReader<R>
) -> TychoResult<Option<T::ItemType>>
pub async fn collect_async<R: AsyncRead + AsyncSeek + Unpin + Send>(
&mut self,
reader: &mut PartialReader<R>
) -> TychoResult<Vec<T::ItemType>>
[src]
&mut self,
reader: &mut PartialReader<R>
) -> TychoResult<Vec<T::ItemType>>
Trait Implementations
impl<T: Clone + PartialContainerType> Clone for PartialContainer<T> where
T::ItemParam: Clone,
[src]
T::ItemParam: Clone,
fn clone(&self) -> PartialContainer<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug + PartialContainerType> Debug for PartialContainer<T> where
T::ItemParam: Debug,
[src]
T::ItemParam: Debug,
Auto Trait Implementations
impl<T> RefUnwindSafe for PartialContainer<T> where
T: RefUnwindSafe,
<T as PartialContainerType>::ItemParam: RefUnwindSafe,
T: RefUnwindSafe,
<T as PartialContainerType>::ItemParam: RefUnwindSafe,
impl<T> Send for PartialContainer<T> where
T: Send,
<T as PartialContainerType>::ItemParam: Send,
T: Send,
<T as PartialContainerType>::ItemParam: Send,
impl<T> Sync for PartialContainer<T> where
T: Sync,
<T as PartialContainerType>::ItemParam: Sync,
T: Sync,
<T as PartialContainerType>::ItemParam: Sync,
impl<T> Unpin for PartialContainer<T> where
T: Unpin,
<T as PartialContainerType>::ItemParam: Unpin,
T: Unpin,
<T as PartialContainerType>::ItemParam: Unpin,
impl<T> UnwindSafe for PartialContainer<T> where
T: UnwindSafe,
<T as PartialContainerType>::ItemParam: UnwindSafe,
T: UnwindSafe,
<T as PartialContainerType>::ItemParam: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,