#[non_exhaustive]pub struct SarProgram {
pub identifier: Box<str>,
pub compartments: Box<[SarCompartment]>,
}Expand description
A single Special Access Program with optional compartments.
Identifier forms (§A.6 grammar):
- Abbreviated: 2–3 alphanumeric characters (
BP,CD,XR). - Full (nickname): uppercase letters with optional spaces
(
BUTTER POPCORN).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.identifier: Box<str>Program identifier as it appeared in the source.
compartments: Box<[SarCompartment]>Compartments in source order. May be empty.
Implementations§
Source§impl SarProgram
impl SarProgram
Sourcepub fn new(identifier: Box<str>, compartments: Box<[SarCompartment]>) -> Self
pub fn new(identifier: Box<str>, compartments: Box<[SarCompartment]>) -> Self
Construct a SarProgram with an optional compartment list.
Trait Implementations§
Source§impl Clone for SarProgram
impl Clone for SarProgram
Source§fn clone(&self) -> SarProgram
fn clone(&self) -> SarProgram
Returns a duplicate 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 SarProgram
impl Debug for SarProgram
Source§impl PartialEq for SarProgram
impl PartialEq for SarProgram
impl Eq for SarProgram
impl StructuralPartialEq for SarProgram
Auto Trait Implementations§
impl Freeze for SarProgram
impl RefUnwindSafe for SarProgram
impl Send for SarProgram
impl Sync for SarProgram
impl Unpin for SarProgram
impl UnsafeUnpin for SarProgram
impl UnwindSafe for SarProgram
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