pub struct EmbeddedFile { /* private fields */ }
Expand description
A single file embedded by embed!
.
Implementations§
Source§impl EmbeddedFile
impl EmbeddedFile
Sourcepub fn path(&self) -> &'static str
pub fn path(&self) -> &'static str
Returns the relative path of the embedded file, with the base path
stripped. When not using glob patterns, this is exactly the string you
specified inside the embed!
macro.
Note: the absolute path of this file is not stored, as including this in the binary might leak information about the build system.
Trait Implementations§
Source§impl Debug for EmbeddedFile
impl Debug for EmbeddedFile
Source§impl From<EmbeddedFile> for EmbeddedEntry
impl From<EmbeddedFile> for EmbeddedEntry
Source§fn from(value: EmbeddedFile) -> Self
fn from(value: EmbeddedFile) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EmbeddedFile
impl RefUnwindSafe for EmbeddedFile
impl Send for EmbeddedFile
impl Sync for EmbeddedFile
impl Unpin for EmbeddedFile
impl UnwindSafe for EmbeddedFile
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