pub struct ActiveSegment { /* private fields */ }Implementations§
Source§impl ActiveSegment
impl ActiveSegment
pub fn base_addr(&self) -> u32
pub fn curr_addr(&self) -> u32
pub fn remaining(&self) -> usize
pub fn has_remaining(&self, len: usize) -> bool
pub fn write(&mut self, data: &[u8]) -> Result<(), SegmentError>
pub fn write_at(&mut self, addr: u32, data: &[u8]) -> Result<(), SegmentError>
Trait Implementations§
Source§impl Clone for ActiveSegment
impl Clone for ActiveSegment
Source§fn clone(&self) -> ActiveSegment
fn clone(&self) -> ActiveSegment
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 moreAuto Trait Implementations§
impl Freeze for ActiveSegment
impl RefUnwindSafe for ActiveSegment
impl Send for ActiveSegment
impl Sync for ActiveSegment
impl Unpin for ActiveSegment
impl UnwindSafe for ActiveSegment
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