osu_rs

Trait BeatmapSection

Source
pub trait BeatmapSection<'a> {
    // Required method
    fn consume_line(
        &mut self,
        ctx: &Context,
        line: impl StaticCow<'a>,
    ) -> Result<Option<Section>, ParseError>;
}

Required Methods§

Source

fn consume_line( &mut self, ctx: &Context, line: impl StaticCow<'a>, ) -> Result<Option<Section>, ParseError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a> BeatmapSection<'a> for ()

Source§

fn consume_line( &mut self, _ctx: &Context, _line: impl StaticCow<'a>, ) -> Result<Option<Section>, ParseError>

Source§

impl<'a, T: ParseField<'a>> BeatmapSection<'a> for Vec<T>

Source§

fn consume_line( &mut self, ctx: &Context, line: impl StaticCow<'a>, ) -> Result<Option<Section>, ParseError>

Implementors§

Source§

impl<'a> BeatmapSection<'a> for Colours<'a>

Source§

impl<'a> BeatmapSection<'a> for Difficulty

Source§

impl<'a> BeatmapSection<'a> for Editor

Source§

impl<'a> BeatmapSection<'a> for Events<'a>

Source§

impl<'a> BeatmapSection<'a> for General<'a>

Source§

impl<'a> BeatmapSection<'a> for Metadata<'a>

Source§

impl<'a> BeatmapSection<'a> for Variables<'a>