pub struct Tally { /* private fields */ }Expand description
Whether a source is shown on program output, on preview, or both.
Implementations§
Source§impl Tally
impl Tally
Sourcepub const fn new(on_program: bool, on_preview: bool) -> Self
pub const fn new(on_program: bool, on_preview: bool) -> Self
A tally state: on program (live) output, on preview, both or neither.
Sourcepub const fn on_program(self) -> bool
pub const fn on_program(self) -> bool
Whether the source is on program (live) output.
Sourcepub const fn on_preview(self) -> bool
pub const fn on_preview(self) -> bool
Whether the source is on preview output.
Trait Implementations§
impl Copy for Tally
impl Eq for Tally
impl StructuralPartialEq for Tally
Auto Trait Implementations§
impl Freeze for Tally
impl RefUnwindSafe for Tally
impl Send for Tally
impl Sync for Tally
impl Unpin for Tally
impl UnsafeUnpin for Tally
impl UnwindSafe for Tally
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