Struct modbus_core::rtu::FrameLocation
source · pub struct FrameLocation {
pub start: usize,
pub size: usize,
}
Expand description
The location of all bytes that belong to the frame.
Fields§
§start: usize
The index where the frame starts
size: usize
Number of bytes that belong to the frame
Trait Implementations§
source§impl Clone for FrameLocation
impl Clone for FrameLocation
source§fn clone(&self) -> FrameLocation
fn clone(&self) -> FrameLocation
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 Debug for FrameLocation
impl Debug for FrameLocation
source§impl PartialEq for FrameLocation
impl PartialEq for FrameLocation
source§fn eq(&self, other: &FrameLocation) -> bool
fn eq(&self, other: &FrameLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FrameLocation
impl Eq for FrameLocation
impl StructuralPartialEq for FrameLocation
Auto Trait Implementations§
impl Freeze for FrameLocation
impl RefUnwindSafe for FrameLocation
impl Send for FrameLocation
impl Sync for FrameLocation
impl Unpin for FrameLocation
impl UnwindSafe for FrameLocation
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