pub struct SerialDecl {
pub name: String,
pub kind: DeclKind,
pub type_: String,
pub body: Option<String>,
pub params: Vec<String>,
}Expand description
A single serialized declaration inside a SerializedIr module.
Fields§
§name: StringThe fully-qualified name of the declaration.
kind: DeclKindThe flavour of this declaration.
type_: StringThe type signature as a human-readable string.
body: Option<String>The body (term) as a human-readable string, if present.
params: Vec<String>Formal parameter names in order.
Trait Implementations§
Source§impl Clone for SerialDecl
impl Clone for SerialDecl
Source§fn clone(&self) -> SerialDecl
fn clone(&self) -> SerialDecl
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 SerialDecl
impl Debug for SerialDecl
Source§impl PartialEq for SerialDecl
impl PartialEq for SerialDecl
impl Eq for SerialDecl
impl StructuralPartialEq for SerialDecl
Auto Trait Implementations§
impl Freeze for SerialDecl
impl RefUnwindSafe for SerialDecl
impl Send for SerialDecl
impl Sync for SerialDecl
impl Unpin for SerialDecl
impl UnsafeUnpin for SerialDecl
impl UnwindSafe for SerialDecl
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