pub struct CubeStores {
pub pieces: Store<Piece>,
pub stickers: Store<Sticker>,
pub slots: Relation<Slot>,
pub history: Value<Vec<Twist>>,
pub turning: Value<Option<Turning>>,
pub rng: Value<u64>,
}Fields§
§pieces: Store<Piece>§stickers: Store<Sticker>§slots: Relation<Slot>§history: Value<Vec<Twist>>§turning: Value<Option<Turning>>§rng: Value<u64>Trait Implementations§
Source§impl AppCommand<CubeStores> for Scramble
impl AppCommand<CubeStores> for Scramble
Source§impl AppCommand<CubeStores> for TwistCommand
impl AppCommand<CubeStores> for TwistCommand
Source§impl AppCommand<CubeStores> for Undo
impl AppCommand<CubeStores> for Undo
Source§impl Default for CubeStores
impl Default for CubeStores
Source§fn default() -> CubeStores
fn default() -> CubeStores
Returns the “default value” for a type. Read more
Source§impl HasRelation<Slot> for CubeStores
impl HasRelation<Slot> for CubeStores
Source§impl HasStore<Piece> for CubeStores
impl HasStore<Piece> for CubeStores
Source§impl HasStore<Sticker> for CubeStores
impl HasStore<Sticker> for CubeStores
Source§impl Stores for CubeStores
impl Stores for CubeStores
type Snapshot = Snapshot
fn bind(&mut self, _scene: SceneId, _owner: Owner)
fn boundary(&mut self, _owner: Owner)
fn release(&mut self, _entity: Entity, _owner: Owner)
fn snapshot(&self) -> Snapshot
fn restore(&mut self, _from: &Snapshot, _scene: SceneId, _owner: Owner)
Auto Trait Implementations§
impl !Freeze for CubeStores
impl RefUnwindSafe for CubeStores
impl Send for CubeStores
impl Sync for CubeStores
impl Unpin for CubeStores
impl UnsafeUnpin for CubeStores
impl UnwindSafe for CubeStores
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.