pub struct AssetSpecification(/* private fields */);
Expand description
Information about assets that have been defined in an SPX-to-HTML run.
Implementations§
Source§impl AssetSpecification
impl AssetSpecification
Sourcepub fn add_from_saved<R: Read>(&mut self, reader: R) -> Result<&mut Self>
pub fn add_from_saved<R: Read>(&mut self, reader: R) -> Result<&mut Self>
Update this specification with information from one that’s been serialized.
It is possible for two specifications to be incompatible, in which case an error will be returned and this object will be left in an undefined state.
Sourcepub fn save<W: Write>(&self, writer: W) -> Result<()>
pub fn save<W: Write>(&self, writer: W) -> Result<()>
Save this asset specification to a stream.
Currently, this is done in a JSON format, but this is not guaranteed to always be the case. The serialization format does not make any effort to provide for backwards or forwards compatibility. The serialized data should be viewed as ephemera that are only guaranteed to remain useful so long as the executing program remains unchanged.
Sourcepub fn output_paths(&self) -> impl Iterator<Item = Cow<'_, str>>
pub fn output_paths(&self) -> impl Iterator<Item = Cow<'_, str>>
Produce the TeX paths of the output files associated with this specification.
Trait Implementations§
Source§impl Clone for AssetSpecification
impl Clone for AssetSpecification
Source§fn clone(&self) -> AssetSpecification
fn clone(&self) -> AssetSpecification
Returns a duplicate 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 AssetSpecification
impl Debug for AssetSpecification
Source§impl Default for AssetSpecification
impl Default for AssetSpecification
Source§fn default() -> AssetSpecification
fn default() -> AssetSpecification
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AssetSpecification
impl RefUnwindSafe for AssetSpecification
impl Send for AssetSpecification
impl Sync for AssetSpecification
impl Unpin for AssetSpecification
impl UnwindSafe for AssetSpecification
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