pub struct TableEffectRule {
pub target: TableEffectTarget,
pub effect: TableEffect,
pub priority: u8,
pub blend_mode: BlendMode,
pub style_mask: StyleMask,
}Expand description
A single effect rule applied to a table target.
Fields§
§target: TableEffectTargetTarget selection (section/row/column/range).
effect: TableEffectEffect definition to apply.
priority: u8Rule priority (higher applies later).
blend_mode: BlendModeBlend mode for effect vs base style.
style_mask: StyleMaskMask of style channels the effect can override.
Implementations§
Source§impl TableEffectRule
impl TableEffectRule
Sourcepub fn new(target: TableEffectTarget, effect: TableEffect) -> Self
pub fn new(target: TableEffectTarget, effect: TableEffect) -> Self
Create a new effect rule with default blending and masking.
Sourcepub fn blend_mode(self, blend_mode: BlendMode) -> Self
pub fn blend_mode(self, blend_mode: BlendMode) -> Self
Set blend mode.
Sourcepub fn style_mask(self, style_mask: StyleMask) -> Self
pub fn style_mask(self, style_mask: StyleMask) -> Self
Set style mask.
Trait Implementations§
Source§impl Clone for TableEffectRule
impl Clone for TableEffectRule
Source§fn clone(&self) -> TableEffectRule
fn clone(&self) -> TableEffectRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TableEffectRule
impl RefUnwindSafe for TableEffectRule
impl Send for TableEffectRule
impl Sync for TableEffectRule
impl Unpin for TableEffectRule
impl UnsafeUnpin for TableEffectRule
impl UnwindSafe for TableEffectRule
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