pub struct FscFile {Show 18 fields
pub audio_file: String,
pub background_file: String,
pub cover_file: String,
pub video_file: String,
pub effect_file: String,
pub storyboard_file: String,
pub metadata: Metadata,
pub colors: Colors,
pub hit_objects: Vec<HitObject>,
pub timing_points: Vec<TimingPoint>,
pub scroll_velocities: Vec<ScrollVelocity>,
pub hit_sound_fades: Vec<HitSoundFade>,
pub accuracy_difficulty: Option<f32>,
pub health_difficulty: Option<f32>,
pub dual_mode: Option<DualMode>,
pub new_lane_switch_layout: Option<bool>,
pub time_in_editor: Option<i32>,
pub extra_playfields: Option<i32>,
}Fields§
§audio_file: String§background_file: String§cover_file: String§video_file: String§effect_file: String§storyboard_file: String§metadata: Metadata§colors: Colors§hit_objects: Vec<HitObject>§timing_points: Vec<TimingPoint>§scroll_velocities: Vec<ScrollVelocity>§hit_sound_fades: Vec<HitSoundFade>§accuracy_difficulty: Option<f32>§health_difficulty: Option<f32>§dual_mode: Option<DualMode>§new_lane_switch_layout: Option<bool>§time_in_editor: Option<i32>§extra_playfields: Option<i32>Implementations§
Source§impl FscFile
impl FscFile
pub const MIN_KEYMODE: isize = 1
pub const MAX_KEYMODE: isize = -1
pub fn new() -> Self
pub fn to_str(&self) -> Result<String, Error>
pub fn is_dual(&self) -> bool
pub fn is_split(&self) -> bool
pub fn start_time(&self) -> f32
pub fn end_time(&self) -> f32
pub fn max_combo(&self) -> i32
pub fn key_count(&self) -> isize
pub fn validate(&self) -> Result<(), String>
pub fn get_normal_notes(&self) -> Vec<&HitObject>
pub fn get_long_notes(&self) -> Vec<&HitObject>
pub fn get_tick_notes(&self) -> Vec<&HitObject>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FscFile
impl<'de> Deserialize<'de> for FscFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FscFile
impl RefUnwindSafe for FscFile
impl Send for FscFile
impl Sync for FscFile
impl Unpin for FscFile
impl UnsafeUnpin for FscFile
impl UnwindSafe for FscFile
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