pub enum ConfigGraphs {
Simple(CuGraph),
Missions(HashMap<String, CuGraph>),
}
Variants§
Implementations§
Source§impl ConfigGraphs
impl ConfigGraphs
Sourcepub fn get_all_missions_graphs(&self) -> HashMap<String, CuGraph>
pub fn get_all_missions_graphs(&self) -> HashMap<String, CuGraph>
Returns a consistent hashmap of mission names to Graphs whatever the shape of the config is. Note: if there is only one anonymous mission it will be called “default”
pub fn get_default_mission_graph(&self) -> Result<&CuGraph, CuError>
pub fn get_graph(&self, mission_id: Option<&str>) -> Result<&CuGraph, CuError>
pub fn get_graph_mut( &mut self, mission_id: Option<&str>, ) -> Result<&mut CuGraph, CuError>
pub fn add_mission(&mut self, mission_id: &str) -> Result<&mut CuGraph, CuError>
Trait Implementations§
Source§impl Clone for ConfigGraphs
impl Clone for ConfigGraphs
Source§fn clone(&self) -> ConfigGraphs
fn clone(&self) -> ConfigGraphs
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ConfigGraphs
impl RefUnwindSafe for ConfigGraphs
impl Send for ConfigGraphs
impl Sync for ConfigGraphs
impl Unpin for ConfigGraphs
impl UnwindSafe for ConfigGraphs
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