Struct nessa::serialization::ReducedNessaModule
source · pub struct ReducedNessaModule {Show 15 fields
pub name: String,
pub hash: String,
pub code: Vec<NessaExpr>,
pub source: Vec<String>,
pub imports: ImportMap,
pub inner_dependencies: InnerDepGraph,
pub type_templates: Vec<TypeTemplate>,
pub interfaces: Vec<Interface>,
pub interface_impls: Vec<InterfaceImpl>,
pub unary_ops: Vec<Operator>,
pub binary_ops: Vec<Operator>,
pub nary_ops: Vec<Operator>,
pub functions: Vec<Function>,
pub macros: Vec<NessaMacro>,
pub cache: NessaCache,
}Fields§
§name: String§hash: String§code: Vec<NessaExpr>§source: Vec<String>§imports: ImportMap§inner_dependencies: InnerDepGraph§type_templates: Vec<TypeTemplate>§interfaces: Vec<Interface>§interface_impls: Vec<InterfaceImpl>§unary_ops: Vec<Operator>§binary_ops: Vec<Operator>§nary_ops: Vec<Operator>§functions: Vec<Function>§macros: Vec<NessaMacro>§cache: NessaCacheImplementations§
source§impl ReducedNessaModule
impl ReducedNessaModule
pub fn recover_module(self) -> NessaModule
pub fn deserialize(data: &[u8]) -> Self
pub fn serialize(&self) -> Vec<u8> ⓘ
pub fn from_file(path: &Path) -> Self
pub fn write_to_file(&self, path: &Path)
Trait Implementations§
source§impl Clone for ReducedNessaModule
impl Clone for ReducedNessaModule
source§fn clone(&self) -> ReducedNessaModule
fn clone(&self) -> ReducedNessaModule
Returns a copy 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<'de> Deserialize<'de> for ReducedNessaModule
impl<'de> Deserialize<'de> for ReducedNessaModule
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for ReducedNessaModule
impl !RefUnwindSafe for ReducedNessaModule
impl !Send for ReducedNessaModule
impl !Sync for ReducedNessaModule
impl Unpin for ReducedNessaModule
impl !UnwindSafe for ReducedNessaModule
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