pub struct CesFile { /* private fields */ }Implementations§
Source§impl CesFile
impl CesFile
pub fn from_script<S: AsRef<str>>(script: S) -> Result<Self, Box<dyn Error>>
pub fn set_root_name<S: AsRef<str>>( &mut self, root_name: S, ) -> Result<(), Box<dyn Error>>
pub fn get_vis_size<S: AsRef<str>>(&self, key: S) -> Option<u64>
pub fn get_vis_name<S: AsRef<str>>(&self, key: S) -> Option<&str>
pub fn get_nested_vis_size<I, S>( &self, subblock_keys: I, value_key: S, ) -> Option<u64>
pub fn get_nested_vis_name<I, S>( &self, subblock_keys: I, value_key: S, ) -> Option<&str>
pub fn get_sat_encoding(&self) -> Result<Option<Encoding>, AscesisError>
pub fn get_sat_search(&self) -> Result<Option<Search>, AscesisError>
Trait Implementations§
Source§impl CompilableMut for CesFile
impl CompilableMut for CesFile
fn compile_mut(&mut self, ctx: &ContextHandle) -> Result<bool, Box<dyn Error>>
Source§impl Content for CesFile
impl Content for CesFile
Source§fn get_script(&self) -> Option<&str>
fn get_script(&self) -> Option<&str>
Script is a content description in text, for example,
YAML-formatted string or Ascesis source.fn get_name(&self) -> Option<&str>
fn get_carrier_ids(&mut self) -> Vec<NodeID>
fn get_causes_by_id(&self, id: NodeID) -> Option<&Vec<Vec<NodeID>>>
fn get_effects_by_id(&self, id: NodeID) -> Option<&Vec<Vec<NodeID>>>
Auto Trait Implementations§
impl Freeze for CesFile
impl RefUnwindSafe for CesFile
impl Send for CesFile
impl Sync for CesFile
impl Unpin for CesFile
impl UnwindSafe for CesFile
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<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
Source§unsafe fn part_ptr(
ptr: *const <Reference as PartialRefTarget>::RawTarget,
) -> <<Inner as Part>::PartType as PartType>::Ptr
unsafe fn part_ptr( ptr: *const <Reference as PartialRefTarget>::RawTarget, ) -> <<Inner as Part>::PartType as PartType>::Ptr
Given a constant pointer to a target, produce a constant pointer to a part of it.
Source§unsafe fn part_ptr_mut(
ptr: *mut <Reference as PartialRefTarget>::RawTarget,
) -> <<Inner as Part>::PartType as PartType>::PtrMut
unsafe fn part_ptr_mut( ptr: *mut <Reference as PartialRefTarget>::RawTarget, ) -> <<Inner as Part>::PartType as PartType>::PtrMut
Given a mutable pointer to a target, produce a mutable pointer to a part of it.