pub struct RegionFile {
pub path: PathBuf,
}
Expand description
Represents a file which holds a Region
Fields§
§path: PathBuf
The path to this region file on disk
Implementations§
Source§impl RegionFile
impl RegionFile
Sourcepub fn new<P>(path: P) -> Self
pub fn new<P>(path: P) -> Self
Create a RegionFile
from a path to a file
Trait Implementations§
Source§impl Clone for RegionFile
impl Clone for RegionFile
Source§fn clone(&self) -> RegionFile
fn clone(&self) -> RegionFile
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RegionFile
impl Debug for RegionFile
Source§impl RegionParser for RegionFile
impl RegionParser for RegionFile
Source§fn position(&self) -> Option<(i32, i32)>
fn position(&self) -> Option<(i32, i32)>
Get the position in the world (using
region coordinates) of the region that will
be parsed by this
RegionParser
if there is no information as to which region this is,
then None
should be returned.Auto Trait Implementations§
impl Freeze for RegionFile
impl RefUnwindSafe for RegionFile
impl Send for RegionFile
impl Sync for RegionFile
impl Unpin for RegionFile
impl UnwindSafe for RegionFile
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