fn decode(base64_str: &str) -> std::result::Result<Self, Base64CursorError> {
        let bytes =
            decode_config(base64_str, URL_SAFE_NO_PAD).map_err(Base64CursorError::DecodeError)?;

        let cursor = String::from_utf8(bytes).map_err(|_| Base64CursorError::Invalid)?;
        let index = cursor
            .split(':')
            .last()
            .map(|s| s.parse::<usize>())
            .ok_or(Base64CursorError::Invalid)?
            .map_err(|_| Base64CursorError::Invalid)?;

        Ok(Self::new(index))
    }
/// Decode the Base64 string representation of the `Cursor`
Decode the Base64 string representation of the `Cursor`
Decode the Base64 string representation of the ` Cursor `
fn decode(base64_str: &str) -> std::result::Result<Self, Base64CursorError> {
        let bytes =
            decode_config(base64_str, URL_SAFE_NO_PAD).map_err(Base64CursorError::DecodeError)?;
        let cursor = String::from_utf8(bytes).map_err(|_| Base64CursorError::Invalid)?;
        let index = cursor
            .split(':')
            .last()
            .map(|s| s.parse::<usize>())
            .ok_or(Base64CursorError::Invalid)?
            .map_err(|_| Base64CursorError::Invalid)?;
        Ok(Self::new(index))
    }
fn decode ( base64_str : & str ) -> std :: result :: Result < Self , Base64CursorError > { let bytes = decode_config ( base64_str , URL_SAFE_NO_PAD ) . map_err ( Base64CursorError :: DecodeError ) ? ; let cursor = String :: from_utf8 ( bytes ) . map_err ( | _ | Base64CursorError :: Invalid ) ? ; let index = cursor . split ( ':' ) . last ( ) . map ( | s | s . parse :: < usize > ( ) ) . ok_or ( Base64CursorError :: Invalid ) ? . map_err ( | _ | Base64CursorError :: Invalid ) ? ; Ok ( Self :: new ( index ) ) }
Decode the Base64 string representation of the `Cursor`
Decode the Base64 string representation of the ` Cursor `
base64_str
&str
base64_str
&str