pub struct MapReader { /* private fields */ }Expand description
Struct for granular map deserialization.
Implementations§
Source§impl MapReader
impl MapReader
pub fn new(buff: &mut DataRead<'_>) -> Result<Self, ReadError>
pub fn header(&mut self) -> Result<[u8; 4], ReadError>
pub fn version(&mut self) -> Result<u32, ReadError>
pub fn content(&mut self) -> Result<Registrar, ReadError>
pub fn skip(&mut self) -> Result<(), ReadError>
pub fn thin_map( &mut self, r: Registrar, ) -> Result<impl Coroutine<(), Return = Result<(), ReadError>, Yield = ThinMapData> + '_, ReadError>
pub fn collect_map( &mut self, tags: HashMap<String, String>, r: Registrar, ) -> Result<Map, ReadError>
pub fn map( &mut self, r: Registrar, ) -> Result<impl Coroutine<(), Return = Result<(), ReadError>, Yield = MapData> + '_, ReadError>
pub fn entities( &mut self, ) -> Result<impl Coroutine<(), Yield = EntityData, Return = Result<(), ReadError>> + '_, ReadError>
pub fn collect_entities(&mut self) -> Result<Vec<Unit>, ReadError>
Auto Trait Implementations§
impl Freeze for MapReader
impl RefUnwindSafe for MapReader
impl Send for MapReader
impl Sync for MapReader
impl Unpin for MapReader
impl UnwindSafe for MapReader
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