fn parse_moving_text_linear(tag: &str) -> Option<Value> {
    if !tag.is_empty() {
        let t = &tag[1..];
        if let Ok(i) = &tag[..1].parse::<u8>() {
            parse_moving_text_mode(t, MovingTextMode::Linear(*i))
        } else {
            parse_moving_text_mode(tag, MovingTextMode::Linear(0))
        }
    } else {
        None
    }
}
/// Parse a moving text linear fragment.
Parse a moving text linear fragment.
Parse a moving text linear fragment .
fn parse_moving_text_linear(tag: &str) -> Option<Value> {
    if !tag.is_empty() {
        let t = &tag[1..];
        if let Ok(i) = &tag[..1].parse::<u8>() {
            parse_moving_text_mode(t, MovingTextMode::Linear(*i))
        } else {
            parse_moving_text_mode(tag, MovingTextMode::Linear(0))
        }
    } else {
        None
    }
}
fn parse_moving_text_linear ( tag : & str ) -> Option < Value > { if ! tag . is_empty ( ) { let t = & tag [ 1 .. ] ; if let Ok ( i ) = & tag [ .. 1 ] . parse :: < u8 > ( ) { parse_moving_text_mode ( t , MovingTextMode :: Linear ( * i ) ) } else { parse_moving_text_mode ( tag , MovingTextMode :: Linear ( 0 ) ) } } else { None } }
Parse a moving text linear fragment.
Parse a moving text linear fragment .
tag
&str