#[non_exhaustive]pub struct SciCompartment {
pub identifier: Box<str>,
pub sub_compartments: Box<[Box<str>]>,
}Expand description
A single compartment under an SCI control system.
Compartments carry an identifier plus zero or more sub-compartments in
source order. Construction is restricted to SciCompartment::new
(the struct is #[non_exhaustive]).
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>Compartment identifier (alphanumeric). Example: G in SI-G.
sub_compartments: Box<[Box<str>]>Sub-compartments in source order. Example: ABCD, DEFG in
SI-G ABCD DEFG.
Implementations§
Trait Implementations§
Source§impl Clone for SciCompartment
impl Clone for SciCompartment
Source§fn clone(&self) -> SciCompartment
fn clone(&self) -> SciCompartment
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 SciCompartment
impl Debug for SciCompartment
Source§impl PartialEq for SciCompartment
impl PartialEq for SciCompartment
impl Eq for SciCompartment
impl StructuralPartialEq for SciCompartment
Auto Trait Implementations§
impl Freeze for SciCompartment
impl RefUnwindSafe for SciCompartment
impl Send for SciCompartment
impl Sync for SciCompartment
impl Unpin for SciCompartment
impl UnsafeUnpin for SciCompartment
impl UnwindSafe for SciCompartment
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