Struct spirt::context::ControlRegion
source · pub struct ControlRegion(/* private fields */);
Trait Implementations§
source§impl Clone for ControlRegion
impl Clone for ControlRegion
source§fn clone(&self) -> ControlRegion
fn clone(&self) -> ControlRegion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Entity for ControlRegion
impl Entity for ControlRegion
type Def = ControlRegionDef
const CHUNK_SIZE: u32 = 4_096u32
fn from_non_zero_u32(i: NonZeroU32) -> Self
fn to_non_zero_u32(self) -> NonZeroU32
fn cx_entity_alloc(cx: &Context) -> &EntityAlloc<Self>
const CHUNK_MASK: u32 = _
fn to_chunk_start_and_intra_chunk_idx(self) -> (Self, usize)
source§impl Hash for ControlRegion
impl Hash for ControlRegion
source§impl PartialEq for ControlRegion
impl PartialEq for ControlRegion
source§fn eq(&self, other: &ControlRegion) -> bool
fn eq(&self, other: &ControlRegion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ControlRegion
impl Eq for ControlRegion
impl StructuralPartialEq for ControlRegion
Auto Trait Implementations§
impl RefUnwindSafe for ControlRegion
impl Send for ControlRegion
impl Sync for ControlRegion
impl Unpin for ControlRegion
impl UnwindSafe for ControlRegion
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
source§impl<E, V> EntityOrientedMapKey<V> for Ewhere
E: Entity,
impl<E, V> EntityOrientedMapKey<V> for Ewhere
E: Entity,
fn to_entity(key: E) -> E
§type DenseValueSlots = Option<V>
type DenseValueSlots = Option<V>
A type holding enough different
Option<V>
slots, for all possible
values of Self
, for a given Self::Entity
value contained inside.fn get_dense_value_slot(_: E, slot: &Option<V>) -> &Option<V>
fn get_dense_value_slot_mut(_: E, slot: &mut Option<V>) -> &mut Option<V>
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.