pub enum EffectError {
Parse(String),
Invalid(String),
Contract(String),
}Expand description
Why WGSL could not become an effect.
Variants§
Parse(String)
The WGSL does not parse; the message points into the source.
Invalid(String)
The WGSL parses but naga rejects it.
Contract(String)
The WGSL is valid but breaks the effect contract described in this module.
Trait Implementations§
Source§impl Clone for EffectError
impl Clone for EffectError
Source§impl Debug for EffectError
impl Debug for EffectError
Source§impl Display for EffectError
impl Display for EffectError
impl Eq for EffectError
Source§impl Error for EffectError
impl Error for EffectError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for EffectError
impl PartialEq for EffectError
impl StructuralPartialEq for EffectError
Auto Trait Implementations§
impl Forget for EffectError
impl Freeze for EffectError
impl Move for EffectError
impl RefUnwindSafe for EffectError
impl Send for EffectErrorwhere
RawVecInner: Send,
impl Sync for EffectErrorwhere
RawVecInner: Sync,
impl Unpin for EffectError
impl UnsafeUnpin for EffectError
impl UnwindSafe for EffectErrorwhere
RawVecInner: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.