#[non_exhaustive]pub struct SyntaxEdge {
pub ast: Option<Ast>,
pub cfg: Option<Cfg>,
}Expand description
A link between two syntax nodes, marked by which layer(s) it belongs to.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ast: Option<Ast>Present when this edge carries an AST (parent/child) link.
cfg: Option<Cfg>Present when this edge carries a CFG (control-flow) link.
Trait Implementations§
Source§impl Clone for SyntaxEdge
impl Clone for SyntaxEdge
impl Copy for SyntaxEdge
Source§impl Debug for SyntaxEdge
impl Debug for SyntaxEdge
Source§impl Default for SyntaxEdge
impl Default for SyntaxEdge
impl Eq for SyntaxEdge
Source§impl PartialEq for SyntaxEdge
impl PartialEq for SyntaxEdge
impl StructuralPartialEq for SyntaxEdge
Auto Trait Implementations§
impl Freeze for SyntaxEdge
impl RefUnwindSafe for SyntaxEdge
impl Send for SyntaxEdge
impl Sync for SyntaxEdge
impl Unpin for SyntaxEdge
impl UnsafeUnpin for SyntaxEdge
impl UnwindSafe for SyntaxEdge
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