Struct tic80::SectionMask
source · pub struct SectionMask { /* private fields */ }
Implementations§
source§impl SectionMask
impl SectionMask
pub fn new( tiles: bool, sprites: bool, map: bool, sfx: bool, music: bool, palette: bool, flags: bool, screen: bool ) -> Self
pub fn tiles(&self) -> bool
pub fn set_tiles(&mut self, value: bool)
pub fn sprites(&self) -> bool
pub fn set_sprites(&mut self, value: bool)
pub fn map(&self) -> bool
pub fn set_map(&mut self, value: bool)
pub fn sfx(&self) -> bool
pub fn set_sfx(&mut self, value: bool)
pub fn music(&self) -> bool
pub fn set_music(&mut self, value: bool)
pub fn palette(&self) -> bool
pub fn set_palette(&mut self, value: bool)
pub fn flags(&self) -> bool
pub fn set_flags(&mut self, value: bool)
pub fn screen(&self) -> bool
pub fn set_screen(&mut self, value: bool)
Trait Implementations§
source§impl BitAnd<Section> for SectionMask
impl BitAnd<Section> for SectionMask
source§impl BitOr<Section> for SectionMask
impl BitOr<Section> for SectionMask
source§impl Bitsized for SectionMask
impl Bitsized for SectionMask
source§impl Clone for SectionMask
impl Clone for SectionMask
source§fn clone(&self) -> SectionMask
fn clone(&self) -> SectionMask
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 From<SectionMask> for u8
impl From<SectionMask> for u8
source§fn from(value: SectionMask) -> Self
fn from(value: SectionMask) -> Self
Converts to this type from the input type.
source§impl From<u8> for SectionMask
impl From<u8> for SectionMask
source§impl PartialEq for SectionMask
impl PartialEq for SectionMask
source§fn eq(&self, other: &SectionMask) -> bool
fn eq(&self, other: &SectionMask) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SectionMask
impl StructuralPartialEq for SectionMask
Auto Trait Implementations§
impl RefUnwindSafe for SectionMask
impl Send for SectionMask
impl Sync for SectionMask
impl Unpin for SectionMask
impl UnwindSafe for SectionMask
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