Struct static_graph::context::Context
source · pub struct Context { /* private fields */ }
Implementations§
source§impl Context
impl Context
pub fn new() -> Self
pub fn set_graphs(&mut self, graphs: FxHashMap<DefId, Arc<Graph>>)
pub fn set_nodes(&mut self, nodes: FxHashMap<DefId, Arc<Node>>)
pub fn set_fields(&mut self, fields: FxHashMap<DefId, Arc<Field>>)
pub fn graph(&self, graph_id: DefId) -> Option<Arc<Graph>>
pub fn node(&self, node_id: DefId) -> Option<Arc<Node>>
pub fn field(&self, field_id: DefId) -> Option<Arc<Field>>
pub fn tag(&self, tag_id: TagId) -> Option<Arc<Tags>>
pub fn snake_name(&self, ident: &Ident) -> FastStr
pub fn upper_camel_name(&self, ident: &Ident) -> FastStr
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin 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