pub struct MemoryRing(/* private fields */);Implementations§
Source§impl MemoryRing
impl MemoryRing
pub const INIT: Self
pub const fn new(cycle: usize, state: MemoryState) -> Self
pub const fn max_cycle() -> usize
pub fn cycle(&self) -> usize
pub fn set_cycle(&mut self, val: usize)
pub fn state(&self) -> MemoryState
pub fn set_state(&mut self, val: MemoryState)
pub fn next(&self) -> Self
pub const fn max_idx(size: usize) -> usize
pub const fn cycle_of_idx(idx: usize, size: usize) -> usize
Trait Implementations§
Source§impl Clone for MemoryRing
impl Clone for MemoryRing
Source§fn clone(&self) -> MemoryRing
fn clone(&self) -> MemoryRing
Returns a duplicate 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 Debug for MemoryRing
impl Debug for MemoryRing
Source§impl From<MemoryRing> for u32
impl From<MemoryRing> for u32
Source§fn from(s: MemoryRing) -> Self
fn from(s: MemoryRing) -> Self
Converts to this type from the input type.
Source§impl From<u32> for MemoryRing
impl From<u32> for MemoryRing
Source§impl PartialEq for MemoryRing
impl PartialEq for MemoryRing
Source§impl PartialOrd for MemoryRing
impl PartialOrd for MemoryRing
impl Copy for MemoryRing
impl Eq for MemoryRing
impl StructuralPartialEq for MemoryRing
Auto Trait Implementations§
impl Freeze for MemoryRing
impl RefUnwindSafe for MemoryRing
impl Send for MemoryRing
impl Sync for MemoryRing
impl Unpin for MemoryRing
impl UnwindSafe for MemoryRing
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