pub enum LayoutIr {
BuiltIn(BuiltInTypeIr),
Struct(StructIr),
Enum(EnumIr),
Service(ServiceIr),
Newtype(NewtypeIr),
}Variants§
Implementations§
Source§impl LayoutIr
impl LayoutIr
pub fn namespace(&self) -> Uuid
pub fn lexical_id(&self) -> LexicalId
pub fn as_built_in(&self) -> Option<BuiltInTypeIr>
pub fn as_struct(&self) -> Option<&StructIr>
pub fn as_enum(&self) -> Option<&EnumIr>
pub fn as_service(&self) -> Option<&ServiceIr>
pub fn as_newtype(&self) -> Option<&NewtypeIr>
Trait Implementations§
Source§impl From<BuiltInTypeIr> for LayoutIr
impl From<BuiltInTypeIr> for LayoutIr
Source§fn from(ty: BuiltInTypeIr) -> Self
fn from(ty: BuiltInTypeIr) -> Self
Converts to this type from the input type.
Source§impl Serialize<LayoutIr> for &LayoutIr
impl Serialize<LayoutIr> for &LayoutIr
fn serialize(self, serializer: Serializer<'_>) -> Result<(), SerializeError>
fn serializes_as_some(&self) -> bool
impl Tag for LayoutIr
Auto Trait Implementations§
impl Freeze for LayoutIr
impl RefUnwindSafe for LayoutIr
impl Send for LayoutIr
impl Sync for LayoutIr
impl Unpin for LayoutIr
impl UnwindSafe for LayoutIr
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)