pub struct PlatformConstructCatalog {
pub families: &'static [PlatformConstructFamily],
pub lowerings: &'static [PlatformConstructLowering],
pub scopes: &'static [&'static str],
pub field_kinds: &'static [&'static str],
pub interface_kinds: &'static [&'static str],
pub interface_phases: &'static [&'static str],
pub interface_cardinalities: &'static [&'static str],
pub reserved_keywords: &'static [&'static str],
pub reserved_keyword_privileges: &'static [PlatformReservedKeywordPrivilege],
}Fields§
§families: &'static [PlatformConstructFamily]§lowerings: &'static [PlatformConstructLowering]§scopes: &'static [&'static str]§field_kinds: &'static [&'static str]§interface_kinds: &'static [&'static str]§interface_phases: &'static [&'static str]§interface_cardinalities: &'static [&'static str]§reserved_keywords: &'static [&'static str]§reserved_keyword_privileges: &'static [PlatformReservedKeywordPrivilege]Implementations§
Source§impl PlatformConstructCatalog
impl PlatformConstructCatalog
pub fn family(&self, id: &str) -> Option<&'static PlatformConstructFamily>
pub fn lowering(&self, id: &str) -> Option<&'static PlatformConstructLowering>
pub fn family_ids(&self) -> impl Iterator<Item = &'static str> + '_
pub fn lowering_ids(&self) -> impl Iterator<Item = &'static str> + '_
pub fn lowerings_for_family<'a>( &'a self, family: &'a str, ) -> impl Iterator<Item = &'a PlatformConstructLowering> + 'a
pub fn contains_scope(&self, scope: &str) -> bool
pub fn contains_field_kind(&self, kind: &str) -> bool
pub fn contains_interface_kind(&self, kind: &str) -> bool
pub fn contains_interface_phase(&self, phase: &str) -> bool
pub fn contains_interface_cardinality(&self, cardinality: &str) -> bool
pub fn contains_reserved_keyword(&self, keyword: &str) -> bool
pub fn reserved_keyword_privilege( &self, library_id: &str, keyword: &str, construct_family: &str, scope: &str, lowering_target: &str, ) -> Option<&'static PlatformReservedKeywordPrivilege>
Trait Implementations§
Source§impl Clone for PlatformConstructCatalog
impl Clone for PlatformConstructCatalog
Source§fn clone(&self) -> PlatformConstructCatalog
fn clone(&self) -> PlatformConstructCatalog
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 moreimpl Copy for PlatformConstructCatalog
Source§impl Debug for PlatformConstructCatalog
impl Debug for PlatformConstructCatalog
impl Eq for PlatformConstructCatalog
Source§impl PartialEq for PlatformConstructCatalog
impl PartialEq for PlatformConstructCatalog
Source§fn eq(&self, other: &PlatformConstructCatalog) -> bool
fn eq(&self, other: &PlatformConstructCatalog) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlatformConstructCatalog
Auto Trait Implementations§
impl Freeze for PlatformConstructCatalog
impl RefUnwindSafe for PlatformConstructCatalog
impl Send for PlatformConstructCatalog
impl Sync for PlatformConstructCatalog
impl Unpin for PlatformConstructCatalog
impl UnsafeUnpin for PlatformConstructCatalog
impl UnwindSafe for PlatformConstructCatalog
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