pub struct ProcessorLogic { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BlockLogic for ProcessorLogic
impl BlockLogic for ProcessorLogic
fn is_symmetric(&self) -> bool
fn create_build_cost(&self) -> Option<ItemStorage>
fn data_from_i32(&self, _: i32, _: GridPos) -> Result<DynData, DataConvertError>
fn deserialize_state( &self, data: DynData, ) -> Result<Option<State>, DeserializeError>
fn read( &self, b: &mut Build, buff: &mut DataRead<'_>, ) -> Result<(), DataReadError>
fn mirror_state(&self, state: &mut State, horizontally: bool, vertically: bool)
fn rotate_state(&self, state: &mut State, clockwise: bool)
fn serialize_state(&self, state: &State) -> Result<DynData, SerializeError>
fn draw( &self, name: &str, state: Option<&State>, context: Option<&RenderingContext>, rot: Rotation, scale: Scale, ) -> Image<Cow, CHANNELS>
Auto Trait Implementations§
impl Freeze for ProcessorLogic
impl RefUnwindSafe for ProcessorLogic
impl Send for ProcessorLogic
impl Sync for ProcessorLogic
impl Unpin for ProcessorLogic
impl UnwindSafe for ProcessorLogic
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more