pub struct System {
pub structs: Vec<StructDecl>,
pub consts: Vec<ConstDecl>,
pub memory_regions: Vec<MemoryRegionDecl>,
pub protection_domains: Vec<ProtectionDomainDecl>,
pub channels: Vec<ChannelDecl>,
pub system: Option<SystemDecl>,
pub filename: String,
}Expand description
A parsed .fis system description.
Produced by crate::parser::parse_system.
let system = fic::parser::parse_system("ProtectionDomain pd1(100);").unwrap();
assert_eq!(system.protection_domains.len(), 1);Fields§
§structs: Vec<StructDecl>Struct type declarations (the data layer), in source order.
consts: Vec<ConstDecl>Constant declarations (the data layer), in source order.
memory_regions: Vec<MemoryRegionDecl>Shared memory region declarations, in source order.
protection_domains: Vec<ProtectionDomainDecl>Protection domain declarations, in source order.
channels: Vec<ChannelDecl>Channel declarations, in source order.
system: Option<SystemDecl>System composition declaration, if present.
None means the default composition: all declared PDs run in parallel.
filename: StringSource filename (set after parsing, used for diagnostics).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for System
impl RefUnwindSafe for System
impl Send for System
impl Sync for System
impl Unpin for System
impl UnsafeUnpin for System
impl UnwindSafe for System
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.