pub struct EnumerationList { /* private fields */ }Expand description
The <xtce:EnumerationList> of an enumerated parameter type.
Entries are stored sorted by value so that lookup is a binary search rather than a
linear scan; enumerations in real databases reach several hundred entries.
Implementations§
Source§impl EnumerationList
impl EnumerationList
Sourcepub fn new(entries: Vec<Enumeration>) -> Self
pub fn new(entries: Vec<Enumeration>) -> Self
Builds a list from unsorted entries.
Sourcepub fn entries(&self) -> &[Enumeration]
pub fn entries(&self) -> &[Enumeration]
All entries, ordered by value.
Trait Implementations§
Source§impl Clone for EnumerationList
impl Clone for EnumerationList
Source§impl Debug for EnumerationList
impl Debug for EnumerationList
Auto Trait Implementations§
impl Forget for EnumerationList
impl Freeze for EnumerationList
impl Move for EnumerationList
impl RefUnwindSafe for EnumerationList
impl Send for EnumerationList
impl Sync for EnumerationList
impl Unpin for EnumerationList
impl UnsafeUnpin for EnumerationList
impl UnwindSafe for EnumerationList
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