pub struct RAMReader { /* private fields */ }Implementations§
Trait Implementations§
Source§impl MIDIReader for RAMReader
impl MIDIReader for RAMReader
type ByteReader = FullRamTrackReader
fn open_reader<'a>( &self, track_number: Option<u32>, start: u64, len: u64, ) -> FullRamTrackReader
fn read_bytes_to( &self, pos: u64, bytes: Vec<u8>, ) -> Result<Vec<u8>, MIDILoadError>
fn len(&self) -> u64
fn read_bytes(&self, pos: u64, count: usize) -> Result<Vec<u8>, MIDILoadError>
fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for RAMReader
impl RefUnwindSafe for RAMReader
impl Send for RAMReader
impl Sync for RAMReader
impl Unpin for RAMReader
impl UnsafeUnpin for RAMReader
impl UnwindSafe for RAMReader
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more