pub struct StaticPackage {
pub crate_name: &'static str,
pub root: &'static StaticPackageModule,
pub dependencies: &'static [&'static StaticPackage],
}Expand description
The type holding the source code of external packages.
You typically don’t implement this, instead it is generated for you by wesl::PackageBuilder.
Crates containing shader packages export const instances of this type, which you can
then import and add to your resolver.
Fields§
§crate_name: &'static str§root: &'static StaticPackageModule§dependencies: &'static [&'static StaticPackage]Trait Implementations§
Source§impl Debug for StaticPackage
impl Debug for StaticPackage
impl Eq for StaticPackage
Source§impl PartialEq for StaticPackage
impl PartialEq for StaticPackage
impl StructuralPartialEq for StaticPackage
Auto Trait Implementations§
impl Freeze for StaticPackage
impl RefUnwindSafe for StaticPackage
impl Send for StaticPackage
impl Sync for StaticPackage
impl Unpin for StaticPackage
impl UnsafeUnpin for StaticPackage
impl UnwindSafe for StaticPackage
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