pub struct ScoreLimits {
pub max_text_bytes: usize,
pub max_nesting: usize,
pub max_channels: usize,
pub max_notes: usize,
pub max_events: usize,
pub max_duration_seconds: f64,
}Expand description
Bounds on a score, checked while it is parsed or built.
Fields§
§max_text_bytes: usizeLength of score text in bytes.
max_nesting: usizeDepth of nested repeats and pattern references, at most MAX_NESTING.
max_channels: usizeNumber of channels, at most MAX_CHANNELS.
max_notes: usizeNotes in all channels after repeats and patterns are expanded.
max_events: usizeCommands executed while expanding repeats and patterns. Bounds parsing work even for repeats of commands that produce no notes.
max_duration_seconds: f64Length of the song once through, before loops.
Trait Implementations§
Source§impl Clone for ScoreLimits
impl Clone for ScoreLimits
Source§fn clone(&self) -> ScoreLimits
fn clone(&self) -> ScoreLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScoreLimits
impl Debug for ScoreLimits
Source§impl Default for ScoreLimits
impl Default for ScoreLimits
Source§impl PartialEq for ScoreLimits
impl PartialEq for ScoreLimits
impl StructuralPartialEq for ScoreLimits
Auto Trait Implementations§
impl Freeze for ScoreLimits
impl RefUnwindSafe for ScoreLimits
impl Send for ScoreLimits
impl Sync for ScoreLimits
impl Unpin for ScoreLimits
impl UnsafeUnpin for ScoreLimits
impl UnwindSafe for ScoreLimits
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