Enum lychee_lib::Base
source · pub enum Base {
Local(PathBuf),
Remote(Url),
}Expand description
When encountering links without a full domain in a document, the base determines where this resource can be found. Both, local and remote targets are supported.
Variants§
Local(PathBuf)
Local file path pointing to root directory
Remote(Url)
Remote URL pointing to a website homepage
Trait Implementations§
source§impl<'de> Deserialize<'de> for Base
impl<'de> Deserialize<'de> for Base
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Base
impl PartialEq for Base
impl Eq for Base
impl StructuralPartialEq for Base
Auto Trait Implementations§
impl RefUnwindSafe for Base
impl Send for Base
impl Sync for Base
impl Unpin for Base
impl UnwindSafe for Base
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.