pub struct BundledAsset { /* private fields */ }
Expand description
An asset that should be copied by the bundler with some options. This type will be
serialized into the binary and added to the link section LinkSection::CURRENT
.
CLIs that support manganis, should pull out the assets from the link section, optimize,
and write them to the filesystem at BundledAsset::bundled_path
for the application
to use.
Implementations§
Source§impl BundledAsset
impl BundledAsset
Sourcepub fn bundled_path(&self) -> &str
pub fn bundled_path(&self) -> &str
Get the bundled name of the asset. This identifier cannot be used to read the asset directly
Sourcepub fn absolute_source_path(&self) -> &str
pub fn absolute_source_path(&self) -> &str
Get the absolute path of the asset source. This path will not be available when the asset is bundled
Sourcepub const fn options(&self) -> &AssetOptions
pub const fn options(&self) -> &AssetOptions
Get the options for the asset
Trait Implementations§
Source§impl Clone for BundledAsset
impl Clone for BundledAsset
Source§fn clone(&self) -> BundledAsset
fn clone(&self) -> BundledAsset
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BundledAsset
impl Debug for BundledAsset
Source§impl<'de> Deserialize<'de> for BundledAsset
impl<'de> Deserialize<'de> for BundledAsset
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for BundledAsset
impl Hash for BundledAsset
Source§impl PartialEq for BundledAsset
impl PartialEq for BundledAsset
Source§impl PartialOrd for BundledAsset
impl PartialOrd for BundledAsset
Source§impl Serialize for BundledAsset
impl Serialize for BundledAsset
Source§impl SerializeConst for BundledAsset
impl SerializeConst for BundledAsset
impl Copy for BundledAsset
impl StructuralPartialEq for BundledAsset
Auto Trait Implementations§
impl Freeze for BundledAsset
impl RefUnwindSafe for BundledAsset
impl Send for BundledAsset
impl Sync for BundledAsset
impl Unpin for BundledAsset
impl UnwindSafe for BundledAsset
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