pub struct AssetBlock {
pub assets: Vec<AssetDecl>,
pub source_span: Option<Span>,
}Expand description
The top-level assets block.
Absent from the document → AssetBlock::default() (empty, no error).
Fields§
§assets: Vec<AssetDecl>The ordered list of asset declarations.
source_span: Option<Span>Source span of the assets { … } block, when available.
Trait Implementations§
Source§impl Clone for AssetBlock
impl Clone for AssetBlock
Source§fn clone(&self) -> AssetBlock
fn clone(&self) -> AssetBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AssetBlock
impl Debug for AssetBlock
Source§impl Default for AssetBlock
impl Default for AssetBlock
Source§fn default() -> AssetBlock
fn default() -> AssetBlock
Returns the “default value” for a type. Read more
Source§impl PartialEq for AssetBlock
impl PartialEq for AssetBlock
Source§fn eq(&self, other: &AssetBlock) -> bool
fn eq(&self, other: &AssetBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AssetBlock
Auto Trait Implementations§
impl Freeze for AssetBlock
impl RefUnwindSafe for AssetBlock
impl Send for AssetBlock
impl Sync for AssetBlock
impl Unpin for AssetBlock
impl UnsafeUnpin for AssetBlock
impl UnwindSafe for AssetBlock
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