#[non_exhaustive]#[repr(u8)]pub enum MemRegion {
All = 0,
Application = 1,
System = 2,
Base = 3,
}
Expand description
A region of memory. Most applications will only use Application
memory, but the other types can be used to query memory usage information.
See https://www.3dbrew.org/wiki/Memory_layout#FCRAM_memory-regions_layout
for more details on the different types of memory.
§Example
let all_memory = ctru::os::MemRegion::All;
assert!(all_memory.size() > 0);
assert!(all_memory.used() > 0);
assert!(all_memory.free() > 0);
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
All = 0
All memory regions.
Application = 1
APPLICATION memory.
System = 2
SYSTEM memory.
Base = 3
BASE memory.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for MemRegion
impl Send for MemRegion
impl Sync for MemRegion
impl Unpin for MemRegion
impl UnwindSafe for MemRegion
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more