use crate::prelude::*;
mod file;
mod special_not_file;
mod non_special;
impl BetterUrl {
pub(crate) fn after_scheme_bytes(scheme: Scheme<'_>, rest: &[u8]) -> Result<Self, InvalidUrl> {
match scheme.r#type() {
SchemeType::File => Self::new_file_bytes (scheme, rest),
SchemeType::SpecialNotFile => Self::new_special_not_file_bytes(scheme, rest),
SchemeType::NonSpecial => Self::new_non_special_bytes (scheme, rest),
}
}
}