pub struct RecordSet {
pub record_id: VariableRecordType,
pub record_serial_number: u32,
pub record_length_bytes: u16,
pub records: Vec<Vec<u8>>,
}Expand description
Part of 6.2.73 Record Specification record
Fields§
§record_id: VariableRecordType§record_serial_number: u32§record_length_bytes: u16§records: Vec<Vec<u8>>Implementations§
Source§impl RecordSet
impl RecordSet
pub fn with_record_id(self, record_id: VariableRecordType) -> Self
pub fn with_record_serial_number(self, record_serial_number: u32) -> Self
Sourcepub fn with_record(self, record: Vec<u8>) -> Self
pub fn with_record(self, record: Vec<u8>) -> Self
Adds record to be the Record Values in this RecordSet.
It is specified in the DIS standard that all Record Values in a RecordSet are of the same length.
It is up to the caller of the function to ensure only Record Values of same length are added,
the length of the last added value is assumed for all previously added.
Sourcepub fn with_records(self, records: Vec<Vec<u8>>) -> Self
pub fn with_records(self, records: Vec<Vec<u8>>) -> Self
Sets records to be the records in this RecordSet.
It is specified in the DIS standard that all Record Values in a RecordSet are of the same length (i.e., the inner Vec).
Trait Implementations§
impl StructuralPartialEq for RecordSet
Auto Trait Implementations§
impl Freeze for RecordSet
impl RefUnwindSafe for RecordSet
impl Send for RecordSet
impl Sync for RecordSet
impl Unpin for RecordSet
impl UnwindSafe for RecordSet
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