pub struct StyleSpec {
pub node_base: NodeBaseSpec,
pub node_rules: Vec<NodeRule>,
pub edge_base: EdgeBaseSpec,
pub edge_rules: Vec<EdgeRule>,
pub labels: LabelLodSpec,
}Fields§
§node_base: NodeBaseSpec§node_rules: Vec<NodeRule>§edge_base: EdgeBaseSpec§edge_rules: Vec<EdgeRule>§labels: LabelLodSpecImplementations§
Source§impl StyleSpec
impl StyleSpec
pub fn node(&self, attrs: &Attrs, role: NodeRole) -> NodeStyle
pub fn edge(&self, attrs: &Attrs, role: EdgeRole) -> EdgeStyle
Sourcepub fn label_lod(&self) -> LabelLodSpec
pub fn label_lod(&self) -> LabelLodSpec
The active label level-of-detail config (host-tunable via set_style).
Sourcepub fn edge_labels_possible(&self) -> bool
pub fn edge_labels_possible(&self) -> bool
Whether any edge could carry a label. Lets the scene builder skip the whole edge-label path — including interning — for the overwhelmingly common case of a spec that never asked for edge labels.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StyleSpec
impl<'de> Deserialize<'de> for StyleSpec
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
Auto Trait Implementations§
impl Freeze for StyleSpec
impl RefUnwindSafe for StyleSpec
impl Send for StyleSpec
impl Sync for StyleSpec
impl Unpin for StyleSpec
impl UnsafeUnpin for StyleSpec
impl UnwindSafe for StyleSpec
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