pub struct Context { /* private fields */ }Implementations§
Source§impl Context
impl Context
pub fn new(root_node_ids: Vec<String>) -> Result<Self>
pub fn root_node_ids(&self) -> &[String]
pub fn loaded_node_ids(&self) -> &[String]
pub fn fixed_node_ids(&self) -> &[String]
pub fn full_node_ids(&self) -> Vec<&str>
pub fn contains_full_node(&self, id: &str) -> bool
pub fn node(&self, id: &str) -> Option<&Node>
pub fn apply_load( &mut self, requested: Node, fixed: Vec<Node>, ) -> Result<LoadReport>
pub fn refresh(&mut self, nodes: impl IntoIterator<Item = Node>) -> Result<()>
pub fn restore( &mut self, nodes: impl IntoIterator<Item = Node>, directly_loaded: Vec<String>, ) -> Result<()>
pub fn box_specs( &self, updates: &BTreeMap<String, NodeDraft>, creates: &[StagedCreate], ) -> Result<Vec<BoxSpec>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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