pub struct ReducedRynaModule {Show 15 fields
pub name: String,
pub hash: String,
pub code: Vec<RynaExpr>,
pub source: Vec<(String, usize)>,
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<RynaMacro>,
pub cache: RynaCache,
}Fields§
§name: String§hash: String§code: Vec<RynaExpr>§source: Vec<(String, usize)>§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<RynaMacro>§cache: RynaCacheImplementations§
Source§impl ReducedRynaModule
impl ReducedRynaModule
pub fn recover_module(self) -> RynaModule
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 ReducedRynaModule
impl Clone for ReducedRynaModule
Source§fn clone(&self) -> ReducedRynaModule
fn clone(&self) -> ReducedRynaModule
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<'de> Deserialize<'de> for ReducedRynaModule
impl<'de> Deserialize<'de> for ReducedRynaModule
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 ReducedRynaModule
impl !RefUnwindSafe for ReducedRynaModule
impl !Send for ReducedRynaModule
impl !Sync for ReducedRynaModule
impl Unpin for ReducedRynaModule
impl !UnwindSafe for ReducedRynaModule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more