pub struct AddressBasedReader<T, AddressSpaceType>where
AddressSpaceType: AddressSpace<T>,{ /* private fields */ }
Expand description
A Reader implementation that’s based on an AddressSpace of the read items.
Implementations§
Source§impl<T, AddressSpaceType> AddressBasedReader<T, AddressSpaceType>where
AddressSpaceType: AddressSpace<T>,
impl<T, AddressSpaceType> AddressBasedReader<T, AddressSpaceType>where
AddressSpaceType: AddressSpace<T>,
Source§impl AddressBasedReader<u8, ByteArrayAddressSpace>
impl AddressBasedReader<u8, ByteArrayAddressSpace>
Sourcepub fn from_string(data: String) -> ByteArrayReader
pub fn from_string(data: String) -> ByteArrayReader
Sourcepub fn from_string_slice(data: &str) -> Self
pub fn from_string_slice(data: &str) -> Self
Creates a new Reader for accessing the sequence of bytes in a string, copied from the given string-slice.
Trait Implementations§
Source§impl<T, AddressSpaceType> Reader<T> for AddressBasedReader<T, AddressSpaceType>where
AddressSpaceType: AddressSpace<T>,
impl<T, AddressSpaceType> Reader<T> for AddressBasedReader<T, AddressSpaceType>where
AddressSpaceType: AddressSpace<T>,
Source§fn move_cursor_to_tail(&mut self)
fn move_cursor_to_tail(&mut self)
Set
cursor
to point to the item pointed by tail
.Source§fn get_sequence(&self) -> impl Iterator<Item = T>
fn get_sequence(&self) -> impl Iterator<Item = T>
Get an iterator over all items between
head
(inclusive) and tail
(exclusive).Source§fn restart_from_tail(&mut self)
fn restart_from_tail(&mut self)
Set
cursor
and head
to point to the item pointed by tail
.Auto Trait Implementations§
impl<T, AddressSpaceType> Freeze for AddressBasedReader<T, AddressSpaceType>where
AddressSpaceType: Freeze,
impl<T, AddressSpaceType> RefUnwindSafe for AddressBasedReader<T, AddressSpaceType>where
AddressSpaceType: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, AddressSpaceType> Send for AddressBasedReader<T, AddressSpaceType>
impl<T, AddressSpaceType> Sync for AddressBasedReader<T, AddressSpaceType>
impl<T, AddressSpaceType> Unpin for AddressBasedReader<T, AddressSpaceType>
impl<T, AddressSpaceType> UnwindSafe for AddressBasedReader<T, AddressSpaceType>where
AddressSpaceType: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more