pub enum ImageSources {
None,
Embedded,
Local,
Remote,
}Expand description
Which image references a conversion may resolve (#646), ordered: each tier includes the ones before it.
Variants§
None
Resolve nothing — every picture stays a placeholder (the default).
Embedded
data: URIs and parts of the same container (EPUB entries, MHTML
parts, email cid: attachments). No filesystem or network access.
Local
Embedded, plus files under the source file’s directory (never an
absolute path, never outside that directory).
Remote
Local, plus remote http(s) fetches (optionally host-restricted).
Implementations§
Source§impl ImageSources
impl ImageSources
Sourcepub const ALL: [ImageSources; 4]
pub const ALL: [ImageSources; 4]
Every tier, in order, with its wire spelling.
Trait Implementations§
Source§impl Clone for ImageSources
impl Clone for ImageSources
impl Copy for ImageSources
Source§impl Debug for ImageSources
impl Debug for ImageSources
Source§impl Default for ImageSources
impl Default for ImageSources
Source§impl Display for ImageSources
impl Display for ImageSources
impl Eq for ImageSources
Source§impl FromStr for ImageSources
impl FromStr for ImageSources
Source§impl Hash for ImageSources
impl Hash for ImageSources
Source§impl Ord for ImageSources
impl Ord for ImageSources
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ImageSources
impl PartialEq for ImageSources
Source§impl PartialOrd for ImageSources
impl PartialOrd for ImageSources
impl StructuralPartialEq for ImageSources
Auto Trait Implementations§
impl Freeze for ImageSources
impl RefUnwindSafe for ImageSources
impl Send for ImageSources
impl Sync for ImageSources
impl Unpin for ImageSources
impl UnsafeUnpin for ImageSources
impl UnwindSafe for ImageSources
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().