pub struct DataSection<S = String> {
pub records: Vec<DataRecord<S>>,
}Expand description
The generic DATA; ... ENDSEC; section.
Fields§
§records: Vec<DataRecord<S>>Records in source order.
Implementations§
Source§impl<S> DataSection<S>
impl<S> DataSection<S>
Sourcepub fn get(&self, id: &InstanceId) -> Option<&DataRecord<S>>
pub fn get(&self, id: &InstanceId) -> Option<&DataRecord<S>>
Finds a record by instance id.
Trait Implementations§
Source§impl<S: Clone> Clone for DataSection<S>
impl<S: Clone> Clone for DataSection<S>
Source§fn clone(&self) -> DataSection<S>
fn clone(&self) -> DataSection<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug> Debug for DataSection<S>
impl<S: Debug> Debug for DataSection<S>
Source§impl<S: Default> Default for DataSection<S>
impl<S: Default> Default for DataSection<S>
Source§fn default() -> DataSection<S>
fn default() -> DataSection<S>
Returns the “default value” for a type. Read more
Source§impl<S: PartialEq> PartialEq for DataSection<S>
impl<S: PartialEq> PartialEq for DataSection<S>
impl<S: PartialEq> StructuralPartialEq for DataSection<S>
Auto Trait Implementations§
impl<S> Freeze for DataSection<S>
impl<S> RefUnwindSafe for DataSection<S>
impl<S> Send for DataSection<S>
impl<S> Sync for DataSection<S>
impl<S> Unpin for DataSection<S>
impl<S> UnsafeUnpin for DataSection<S>
impl<S> UnwindSafe for DataSection<S>
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