pub struct RadarColReader<T: Read + Seek> { /* private fields */ }Expand description
A struct to help read colors out of RadarCol
Implementations§
Source§impl RadarColReader<File>
impl RadarColReader<File>
Sourcepub fn new(radar_col_path: &Path) -> MulReaderResult<RadarColReader<File>>
pub fn new(radar_col_path: &Path) -> MulReaderResult<RadarColReader<File>>
Create a RadarColReader from a path
Source§impl<T: Read + Seek> RadarColReader<T>
impl<T: Read + Seek> RadarColReader<T>
Sourcepub fn from_readable(data_reader: T, length: u32) -> RadarColReader<T>
pub fn from_readable(data_reader: T, length: u32) -> RadarColReader<T>
Create a RadarColReader from an existing readable
Sourcepub fn read(&mut self, id: u32) -> MulReaderResult<Color16>
pub fn read(&mut self, id: u32) -> MulReaderResult<Color16>
Read the color at a specific index
Sourcepub fn read_all(&mut self) -> MulReaderResult<Vec<Color16>>
pub fn read_all(&mut self) -> MulReaderResult<Vec<Color16>>
Read all colors contained in the file
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RadarColReader<T>where
T: Freeze,
impl<T> RefUnwindSafe for RadarColReader<T>where
T: RefUnwindSafe,
impl<T> Send for RadarColReader<T>where
T: Send,
impl<T> Sync for RadarColReader<T>where
T: Sync,
impl<T> Unpin for RadarColReader<T>where
T: Unpin,
impl<T> UnsafeUnpin for RadarColReader<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RadarColReader<T>where
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