pub enum Kind {
Anchor,
Definition,
Object,
Plane,
RenderLayer,
Stairwell,
Zone,
}Expand description
A kind of ID. Kinds sort by name.
Variants§
Anchor
An anchor of a plane, written <plane>/<id>.
Definition
A definition, written <type>/<id>.
Object
An object uid, written <uid>: uids are unique in the world.
Plane
A plane, written <id>.
RenderLayer
A render layer of the profile, written <name>.
Stairwell
A stairwell of a plane, written <plane>/<id>.
Zone
A zone of a plane, written <plane>/<id>.
Implementations§
Source§impl Kind
impl Kind
pub const fn as_str(self) -> &'static str
Sourcepub const fn pairs_by_content(self) -> bool
pub const fn pairs_by_content(self) -> bool
Whether a removed and an added ID of this kind may pair as a rename by having the same content. Object uids pair only by a declared rename: an object’s content and place change freely while it keeps its uid, so neither shows that two uids name one object.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
Source§impl Ord for Kind
impl Ord for Kind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Kind
impl PartialOrd for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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