pub struct Screen {
pub max_id: u64,
pub nodes: HashMap<NodeID, Node>,
pub arrows: Vec<(NodeID, NodeID)>,
pub work_path: Option<String>,
pub config: Config,
pub dims: Coords,
pub is_test: bool,
pub tag_db: TagDB,
/* private fields */
}
Fields
max_id: u64
nodes: HashMap<NodeID, Node>
arrows: Vec<(NodeID, NodeID)>
work_path: Option<String>
config: Config
dims: Coords
is_test: bool
tag_db: TagDB
Implementations
sourceimpl Screen
impl Screen
pub fn with_node<B, F>(&self, k: NodeID, f: F) -> Option<B>where
F: FnMut(&Node) -> B,
pub fn handle_event(&mut self, evt: Event) -> bool
pub fn arrange(&mut self)
pub fn recursive_child_filter_map<F, B>(
&self,
node_id: NodeID,
filter_map: &mut F
) -> Vec<B>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
where
F: FnMut(&Node) -> Option<B>,
A: Allocator,
pub fn flush(&mut self)
pub fn should_auto_arrange(&self) -> bool
pub fn run(&mut self)
pub fn drawn_at(&self, node_id: NodeID) -> Option<&Coords>
pub fn lookup(&self, coords: Coords) -> Option<&NodeID>
pub fn assert_node_consistency(&self)
pub fn save(&self)
pub fn cleanup(&mut self)
pub fn start_raw_mode(&mut self)
pub fn occupied(&self, coords: Coords) -> bool
pub fn add_or_remove_arrow(&mut self)
pub fn draw(&mut self)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Screen
impl Send for Screen
impl Sync for Screen
impl Unpin for Screen
impl UnwindSafe for Screen
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more