[][src]Enum libssg::Route

pub enum Route {
    Id,
    Const(String),
    SetExtension(&'static str),
    Custom(Box<dyn Fn(&Path) -> PathBuf>),
}

Explains how to map the relative file system path to a relative URL.

Variants

Id

Keep file system path and url identical

Const(String)

Disregard file system path and always use this constant value.

SetExtension(&'static str)

Replace extension in file system path with this value.

Custom(Box<dyn Fn(&Path) -> PathBuf>)

Auto Trait Implementations

impl !RefUnwindSafe for Route

impl !Send for Route

impl !Sync for Route

impl Unpin for Route

impl !UnwindSafe for Route

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.