pub struct AppEffects {
pub origin: String,
pub manifest: String,
/* private fields */
}Expand description
An app’s effects: its effects.json and the generated shaders it names.
Fields§
§origin: StringWhere they came from, for messages.
manifest: StringThe effects.json text.
Implementations§
Source§impl AppEffects
impl AppEffects
Sourcepub fn new(
origin: impl Into<String>,
manifest: impl Into<String>,
files: impl IntoIterator<Item = (String, String)>,
) -> Result<Self, String>
pub fn new( origin: impl Into<String>, manifest: impl Into<String>, files: impl IntoIterator<Item = (String, String)>, ) -> Result<Self, String>
files maps the names manifest gives the generated shaders to their source.
Trait Implementations§
Auto Trait Implementations§
impl Forget for AppEffects
impl Freeze for AppEffects
impl Move for AppEffects
impl RefUnwindSafe for AppEffects
impl Send for AppEffects
impl Sync for AppEffects
impl Unpin for AppEffects
impl UnsafeUnpin for AppEffects
impl UnwindSafe for AppEffects
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<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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