pub struct D2Root {
pub elements: Vec<D2Element>,
pub span: Range<usize>,
}Expand description
The root of a D2 Abstract Syntax Tree.
Fields§
§elements: Vec<D2Element>The elements in the D2 diagram.
span: Range<usize>The span of the entire diagram in the source file.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for D2Root
impl<'de> Deserialize<'de> for D2Root
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for D2Root
Auto Trait Implementations§
impl Freeze for D2Root
impl RefUnwindSafe for D2Root
impl Send for D2Root
impl Sync for D2Root
impl Unpin for D2Root
impl UnsafeUnpin for D2Root
impl UnwindSafe for D2Root
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