Struct mca_parser::RegionParser
source · pub struct RegionParser {
pub path: PathBuf,
pub locations: [Location; 1024],
pub timestamps: [u32; 1024],
pub coords: Option<RegionPosition>,
}Expand description
The struct used for parsing the region data
Fields§
§path: PathBuf§locations: [Location; 1024]§timestamps: [u32; 1024]§coords: Option<RegionPosition>Implementations§
source§impl RegionParser
impl RegionParser
sourcepub fn with_coords(path: PathBuf, coords: Option<RegionPosition>) -> Self
pub fn with_coords(path: PathBuf, coords: Option<RegionPosition>) -> Self
Create a RegionParser to do the parsing of the file
sourcepub fn parse(&mut self) -> Result<Region>
pub fn parse(&mut self) -> Result<Region>
Do the actual parsing for the region file
The coords arg is used for the world location of the region (like r.0.0.mca -> (0, 0))
sourcepub fn parse_without_data(&mut self) -> Result<Region>
pub fn parse_without_data(&mut self) -> Result<Region>
Do the actual parsing for the region file
The coords arg is used for the world location of the region (like r.0.0.mca -> (0, 0))
Auto Trait Implementations§
impl RefUnwindSafe for RegionParser
impl Send for RegionParser
impl Sync for RegionParser
impl Unpin for RegionParser
impl UnwindSafe for RegionParser
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