pub struct Shape {
pub name: &'static str,
pub params: &'static [&'static str],
pub layout: Layout,
pub notes: Option<&'static Notes>,
}Expand description
A declared message: its name, and what it is made of.
Fields§
§name: &'static strThe type’s name, which is its Flow type’s.
params: &'static [&'static str]Its type parameters’ names, in order.
layout: LayoutIts fields or its constructors.
notes: Option<&'static Notes>What a declaration’s text says beside its shape, when it has one.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Shape
impl Freeze for Shape
impl Move for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shapewhere
&'static str: UnsafeUnpin,
&'static [&'static str]: UnsafeUnpin,
&'static [Field]: UnsafeUnpin,
&'static [Ctor]: UnsafeUnpin,
&'static [fn() -> WireForm]: UnsafeUnpin,
&'static Notes: UnsafeUnpin,
impl UnwindSafe for Shapewhere
&'static str: UnwindSafe,
&'static [&'static str]: UnwindSafe,
&'static [Field]: UnwindSafe,
&'static [Ctor]: UnwindSafe,
&'static [fn() -> WireForm]: UnwindSafe,
&'static Notes: UnwindSafe,
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