pub struct AccidentalPolicy {
pub preserve_explicit_accidentals: bool,
pub reset_at_barlines: bool,
pub scope: AccidentalScope,
pub source_span: Span,
}Expand description
ABC accidentals are source-significant. Croma records the written accidental exactly when present, applies it to following matching pitches in the same measure, and clears that measure-local state at each barline. When the key signature or syntax leaves behavior ambiguous, diagnostics keep the policy decision source-spanned instead of silently changing notation.
Fields§
§preserve_explicit_accidentals: bool§reset_at_barlines: bool§scope: AccidentalScope§source_span: SpanTrait Implementations§
Source§impl Clone for AccidentalPolicy
impl Clone for AccidentalPolicy
Source§impl Debug for AccidentalPolicy
impl Debug for AccidentalPolicy
impl Eq for AccidentalPolicy
Source§impl PartialEq for AccidentalPolicy
impl PartialEq for AccidentalPolicy
impl StructuralPartialEq for AccidentalPolicy
Auto Trait Implementations§
impl Freeze for AccidentalPolicy
impl RefUnwindSafe for AccidentalPolicy
impl Send for AccidentalPolicy
impl Sync for AccidentalPolicy
impl Unpin for AccidentalPolicy
impl UnsafeUnpin for AccidentalPolicy
impl UnwindSafe for AccidentalPolicy
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