pub struct EntityProxy(pub u64);Available on crate feature
reflect only.Expand description
An Entity as its Entity::to_bits integer.
Entity is not a newtype, so it cannot be reflected through
[facet::Facet]’s transparent; this proxy is what a field whose type is
an entity names with #[facet(opaque, proxy = EntityProxy)], and its
transparent u64 is the shape such a field takes in JSON.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl<'ʄ> Facet<'ʄ> for EntityProxy
impl<'ʄ> Facet<'ʄ> for EntityProxy
Source§impl From<&Entity> for EntityProxy
impl From<&Entity> for EntityProxy
Source§impl From<EntityProxy> for Entity
impl From<EntityProxy> for Entity
Source§fn from(proxy: EntityProxy) -> Self
fn from(proxy: EntityProxy) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for EntityProxy
impl Freeze for EntityProxy
impl RefUnwindSafe for EntityProxy
impl Send for EntityProxy
impl Sync for EntityProxy
impl Unpin for EntityProxy
impl UnsafeUnpin for EntityProxy
impl UnwindSafe for EntityProxy
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