pub trait DocView {
// Required methods
fn entity(&self, id: EntityId) -> Option<&Entity>;
fn constraint(&self, id: ConstraintId) -> Option<&Constraint>;
fn layer(&self, id: LayerId) -> Option<&Layer>;
fn group(&self, id: GroupId) -> Option<&Group>;
fn settings(&self) -> &Settings;
}Expand description
Read-only view of document content.
Required Methods§
Sourcefn constraint(&self, id: ConstraintId) -> Option<&Constraint>
fn constraint(&self, id: ConstraintId) -> Option<&Constraint>
Constraint by ID.
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".