pub struct NodeRule {
pub when: Option<Selector>,
pub set: Option<PartialNodeStyle>,
pub scale: Option<NodeScale>,
}Expand description
A rule is a when gate plus a set (categorical override) and/or a scale.
Fields§
§when: Option<Selector>§set: Option<PartialNodeStyle>§scale: Option<NodeScale>Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeRule
impl<'de> Deserialize<'de> for NodeRule
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 NodeRule
impl RefUnwindSafe for NodeRule
impl Send for NodeRule
impl Sync for NodeRule
impl Unpin for NodeRule
impl UnsafeUnpin for NodeRule
impl UnwindSafe for NodeRule
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