#[non_exhaustive]pub enum Target<'a> {
Definition {
kind: &'a str,
id: &'a str,
},
DefinitionType(&'a str),
Plane(&'a str),
Anchor {
plane: &'a str,
id: &'a str,
},
Zone {
plane: &'a str,
id: &'a str,
},
RenderLayer(&'a str),
GroundLayer(&'a str),
Terrain(&'a str),
File(&'a str),
}Expand description
What a reference names.
Identities are as the source writes them. Anchors and zones belong to
a plane, so they are qualified by the plane’s ID; a portal that omits
its plane names an anchor of its own plane (see
Role::PortalAnchor).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Definition
The definition defs/<kind>/<id>.jsonc.
DefinitionType(&'a str)
A definition type the profile declares.
Plane(&'a str)
A plane the manifest lists.
Anchor
An anchor of a plane.
Zone
A zone of a plane.
RenderLayer(&'a str)
A render layer of the profile.
GroundLayer(&'a str)
A ground layer of the profile.
Terrain(&'a str)
A terrain of the profile’s transitions document.
File(&'a str)
A file, by its root-relative /-separated path, as the path that
names it resolves.
Trait Implementations§
impl<'a> Copy for Target<'a>
impl<'a> Eq for Target<'a>
Source§impl<'a> Ord for Target<'a>
impl<'a> Ord for Target<'a>
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<'a> PartialOrd for Target<'a>
impl<'a> PartialOrd for Target<'a>
impl<'a> StructuralPartialEq for Target<'a>
Auto Trait Implementations§
impl<'a> Forget for Target<'a>
impl<'a> Freeze for Target<'a>
impl<'a> Move for Target<'a>
impl<'a> RefUnwindSafe for Target<'a>
impl<'a> Send for Target<'a>
impl<'a> Sync for Target<'a>
impl<'a> Unpin for Target<'a>
impl<'a> UnsafeUnpin for Target<'a>
impl<'a> UnwindSafe for Target<'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