Struct static_graph::codegen::Codegen
source · pub struct Codegen { /* private fields */ }
Implementations§
source§impl Codegen
impl Codegen
pub fn new(cx: Context) -> Self
pub fn write_document(&mut self, def_ids: Vec<DefId>) -> TokenStream
pub fn write_graph(&mut self, def_id: DefId, stream: &mut TokenStream)
pub fn write_node( &mut self, def_id: DefId, node: &Arc<Node>, stream: &mut TokenStream, nested: &FastStr )
Methods from Deref<Target = Context>§
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 Codegen
impl Send for Codegen
impl Sync for Codegen
impl Unpin for Codegen
impl !UnwindSafe for Codegen
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