pub struct Events {
pub background: Option<Background>,
pub video: Option<Video>,
pub breaks: Vec<Break>,
pub samples: Vec<Sample>,
pub raw_events: String,
}Fields§
§background: Option<Background>§video: Option<Video>§breaks: Vec<Break>§samples: Vec<Sample>§raw_events: StringImplementations§
Source§impl Events
impl Events
pub fn new() -> Self
pub fn set_background(&mut self, filename: String, x_offset: i32, y_offset: i32)
pub fn set_video( &mut self, start_time: i32, filename: String, x_offset: i32, y_offset: i32, )
pub fn add_break(&mut self, start_time: i32, end_time: i32)
pub fn add_sample( &mut self, start_time: i32, layer: i32, filename: String, volume: u8, )
pub fn total_break_time(&self) -> i32
pub fn has_breaks(&self) -> bool
pub fn has_background(&self) -> bool
pub fn has_video(&self) -> bool
pub fn has_samples(&self) -> bool
pub fn samples_by_layer(&self, layer: i32) -> Vec<&Sample>
pub fn to_osu_format(&self) -> String
Trait Implementations§
impl StructuralPartialEq for Events
Auto Trait Implementations§
impl Freeze for Events
impl RefUnwindSafe for Events
impl Send for Events
impl Sync for Events
impl Unpin for Events
impl UnsafeUnpin for Events
impl UnwindSafe for Events
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