pub struct RdefVariable {
pub word: usize,
pub name: String,
pub offset: u32,
pub size: u32,
pub ty: RdefType,
pub default: Option<Vec<u8>>,
}Expand description
One variable of a buffer as stored: its byte range in the buffer, its type and its default value.
Fields§
§word: usizeWhere the record starts, in words of the part.
name: StringThe variable’s name.
offset: u32Its first byte in the buffer.
size: u32Its size in bytes.
ty: RdefTypeIts type.
default: Option<Vec<u8>>The stored default value’s size bytes, where the variable has one.
Trait Implementations§
Source§impl Clone for RdefVariable
impl Clone for RdefVariable
Source§impl Debug for RdefVariable
impl Debug for RdefVariable
impl Eq for RdefVariable
Source§impl PartialEq for RdefVariable
impl PartialEq for RdefVariable
impl StructuralPartialEq for RdefVariable
Auto Trait Implementations§
impl Freeze for RdefVariable
impl RefUnwindSafe for RdefVariable
impl Send for RdefVariable
impl Sync for RdefVariable
impl Unpin for RdefVariable
impl UnsafeUnpin for RdefVariable
impl UnwindSafe for RdefVariable
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