[−][src]Struct reinda::Info
Contains meta information about an asset.
Implementations
impl<'a> Info<'a>
[src]
pub fn original_path(&self) -> &'static str
[src]
Returns the original path specified in the assets!
invocation.
pub fn public_path(&self) -> &'a str
[src]
Returns the public path, which might be the same as original_path
or
might contain a hash if hash
was specified in assets!
for this
asset.
pub fn is_served(&self) -> bool
[src]
Returns whether or not this asset is publicly served. Equals the serve
specification in the assets!
macro.
pub fn is_dynamic(&self) -> bool
[src]
Returns whether this asset is always loaded at runtime (either at
startup or when requested) as opposed to being embeded. Equals the
dynamic
specification in the assets!
macro.
pub fn is_filename_hashed(&self) -> bool
[src]
Returns whether this asset's filename currently (in this compilation
mode) includes a hash of the asset's content. In dev mode, this always
returns false
; in prod mode, this returns true
if hash
was
specified in assets!
.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Info<'a>
[src]
impl<'a> Send for Info<'a>
[src]
impl<'a> Sync for Info<'a>
[src]
impl<'a> Unpin for Info<'a>
[src]
impl<'a> UnwindSafe for Info<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,