Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

#[allow(clippy::large_enum_variant)]
#[derive(Clone, PartialEq)]
pub enum Url {
    External(String),
    Internal(Asset)
}

#[allow(clippy::to_string_trait_impl)]
impl ToString for Url {
    fn to_string(&self) -> String {
        match self {
            Self::External(s) => s.to_string(),
            Self::Internal(a) => a.to_string()
        }
    }
}