pub enum Identity<'a> {
RenderLayer {
name: &'a str,
position: usize,
},
Plane {
id: &'a str,
document: &'a str,
},
Zone {
plane: &'a str,
id: &'a str,
document: &'a str,
},
Anchor {
plane: &'a str,
id: &'a str,
layer: i32,
at: [i64; 2],
},
Stairwell {
plane: &'a str,
id: &'a str,
document: &'a str,
},
Definition {
kind: &'a str,
id: &'a str,
document: &'a str,
},
Chunk {
plane: &'a str,
layer: i32,
cx: i64,
cy: i64,
},
Object {
uid: &'a str,
plane: &'a str,
layer: i32,
cx: i64,
cy: i64,
index: usize,
},
}Expand description
One identity of a pack, as Pack::visit_identities lists it.
Documents are the stored canonical JSON: a plane’s or definition’s
document, or a zone’s or stairwell’s entry.
Variants§
RenderLayer
A render layer of the profile and its position in render_layers.
Plane
Zone
Anchor
Stairwell
Definition
Chunk
The address of a chunk: its plane, layer and chunk coordinates.
Object
An object uid and where its object is: the plane, layer and chunk coordinates of its chunk, and its index in the chunk’s depth-first order.
Trait Implementations§
impl<'a> Copy for Identity<'a>
impl<'a> Eq for Identity<'a>
impl<'a> StructuralPartialEq for Identity<'a>
Auto Trait Implementations§
impl<'a> Freeze for Identity<'a>
impl<'a> RefUnwindSafe for Identity<'a>
impl<'a> Send for Identity<'a>
impl<'a> Sync for Identity<'a>
impl<'a> Unpin for Identity<'a>
impl<'a> UnsafeUnpin for Identity<'a>
impl<'a> UnwindSafe for Identity<'a>
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