[][src]Enum bookbinder::deserialization::PathOrString

pub enum PathOrString<'a> {
    Path(Cow<'a, Path>),
    Str(Cow<'a, str>),
}

Either a path to a markdown file, or a markdown string in its own right.

This is deserialized from a json str; if the str can be interpreted as a reference to an existing file, it will be deserialized as a Path; if no such file exists, it is taken to be a Str.

Variants

Path(Cow<'a, Path>)
Str(Cow<'a, str>)

Trait Implementations

impl<'a> Debug for PathOrString<'a>[src]

impl<'de, 'a> Deserialize<'de> for PathOrString<'a>[src]

impl<'a> From<Cow<'a, str>> for PathOrString<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for PathOrString<'a>

impl<'a> Send for PathOrString<'a>

impl<'a> Sync for PathOrString<'a>

impl<'a> Unpin for PathOrString<'a>

impl<'a> UnwindSafe for PathOrString<'a>

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,