Struct Target
pub struct Target { /* private fields */ }Expand description
A target is a sprite or the background
This models a file format’s target object while focussing on the relevant parts for this application.
Implementations§
§impl Target
Auto-generated by derive_getters::Getters.
impl Target
Auto-generated by derive_getters::Getters.
pub fn variables(
&self,
) -> &TargetData<VariableKind, (DataId<VariableKind>, SValue)>
pub fn variables( &self, ) -> &TargetData<VariableKind, (DataId<VariableKind>, SValue)>
Get field variables from instance of Target.
pub fn lists(&self) -> &TargetData<ListKind, (DataId<ListKind>, Vec<SValue>)>
pub fn lists(&self) -> &TargetData<ListKind, (DataId<ListKind>, Vec<SValue>)>
Get field lists from instance of Target.
pub fn blocks(&self) -> &TargetBlocks
pub fn blocks(&self) -> &TargetBlocks
Get field blocks from instance of Target.
pub fn procedures(&self) -> &TargetProcedures
pub fn procedures(&self) -> &TargetProcedures
Get field procedures from instance of Target.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Target
impl !Sync for Target
impl Freeze for Target
impl RefUnwindSafe for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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