pub struct World {
pub name: String,
pub manifest: WorldManifest,
pub dir: Option<PathBuf>,
}Expand description
A world that loaded and validated.
Fields§
§name: StringThe world’s key in the corpus — its directory path under the root, which is exactly what a Locator’s path (or host) resolves to.
manifest: WorldManifest§dir: Option<PathBuf>Where it was loaded from, when it came off a disk. None for a world
fetched over the wire — the clauses that read the tree skip those rather
than guess at what a remote host has beside its manifest.
Auto Trait Implementations§
impl Freeze for World
impl RefUnwindSafe for World
impl Send for World
impl Sync for World
impl Unpin for World
impl UnsafeUnpin for World
impl UnwindSafe for World
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