pub trait DataModelExt {
// Required methods
fn content_points(&self) -> Vec<&DiagramPoint>;
fn connections(&self) -> Vec<&DiagramConnection>;
fn text(&self) -> Vec<String>;
}Expand description
Extension trait for DataModel providing convenience access to SmartArt content.
Corresponds to ECMA-376 §21.4.2.8 (CT_DataModel).
Required Methods§
Sourcefn content_points(&self) -> Vec<&DiagramPoint>
fn content_points(&self) -> Vec<&DiagramPoint>
Returns all diagram points that represent actual content nodes.
Filters out connector/transition points (parTrans, sibTrans, pres) and
returns only points of type node, asst, or doc.
Sourcefn connections(&self) -> Vec<&DiagramConnection>
fn connections(&self) -> Vec<&DiagramConnection>
Returns all connections between diagram points.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl DataModelExt for DataModel
Available on crate features
dml-diagrams and dml-text only.