pub struct SelfPlanet;Expand description
Phantom marker for “this entity’s own planet” — used by ECS adapters
whose per-entity components carry PlanetFixed<P> phantoms but whose
planet identity is determined at runtime by the entity itself.
Planet-side analog of SelfRef (which serves the same role for
Vehicle-parameterized frames). Use when wrapping a per-entity
rotation Component such as PlanetFixedRotationC whose Bevy entity
already carries a PlanetC discriminator — the typed FrameTransform
inside the Component encodes the direction (RootInertial → PlanetFixed)
while the planet identity stays at the entity level.
Trait Implementations§
Source§impl Clone for SelfPlanet
impl Clone for SelfPlanet
Source§fn clone(&self) -> SelfPlanet
fn clone(&self) -> SelfPlanet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SelfPlanet
Source§impl Debug for SelfPlanet
impl Debug for SelfPlanet
Source§impl Planet for SelfPlanet
impl Planet for SelfPlanet
Source§const NAME: &'static str = "SelfPlanet"
const NAME: &'static str = "SelfPlanet"
Human-readable name for error messages and debug output.
Source§const IS_WILDCARD: bool = true
const IS_WILDCARD: bool = true
true iff this tag is a runtime-resolved storage-boundary wildcard
(SelfPlanet) rather than a concrete planet. Defaulted false so
define_planet! call sites and the built-in markers need no change;
only the wildcard overrides it. Drives the MintPolicy of frames
parameterized by this tag.Auto Trait Implementations§
impl Freeze for SelfPlanet
impl RefUnwindSafe for SelfPlanet
impl Send for SelfPlanet
impl Sync for SelfPlanet
impl Unpin for SelfPlanet
impl UnsafeUnpin for SelfPlanet
impl UnwindSafe for SelfPlanet
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