pub struct Typing { /* private fields */ }Expand description
Every node keeps one id while held; a node lowered anew takes a free one.
Implementations§
Source§impl Typing
impl Typing
pub fn arguments(&self, node: &str) -> Option<&Arguments>
pub fn ty(&self, n: NodeId) -> Ty
pub fn var(&self, n: NodeId) -> Var
pub fn value(&self, n: NodeId) -> &Value
pub fn name(&self, n: NodeId) -> &str
pub fn grid(&self, n: NodeId) -> Grid
pub fn at(&self, n: NodeId) -> &Node
pub fn ids(&self) -> impl Iterator<Item = NodeId> + '_
pub fn id(&self, path: &str) -> Option<NodeId>
Sourcepub fn paths(&self) -> impl Iterator<Item = (&str, NodeId)>
pub fn paths(&self) -> impl Iterator<Item = (&str, NodeId)>
Every path named, the draft’s over the rest.
Trait Implementations§
impl StructuralPartialEq for Typing
Auto Trait Implementations§
impl !Freeze for Typing
impl !RefUnwindSafe for Typing
impl !Send for Typing
impl !Sync for Typing
impl Unpin for Typing
impl UnsafeUnpin for Typing
impl UnwindSafe for Typing
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