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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more