#[non_exhaustive]pub struct OrderDecided<'a> {
pub geometry: &'a str,
pub attribute: &'a str,
pub winner: &'a str,
pub dropped: Vec<&'a str>,
}Expand description
An attribute that two or more nodes define at the same rank, so that only the order they were connected in decides which one applies.
ɴsɪ ranks definitions by priority, then by proximity to the geometry,
and does not say what happens when both are equal. Rendered in
3Delight 2.9.207, the node connected first wins, for a plain
attribute and for a shader alike, and the renderer says nothing about
the definitions it drops. A scene whose look depends on call order
is almost never what its author meant, so this names both sides; a
backend warns with its Display text.
Returned by Scene::order_decided.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.geometry: &'a strThe geometry the attribute applies to.
attribute: &'a strThe attribute: its name on an attributes node, or
surfaceshader, displacementshader or volumeshader.
winner: &'a strThe definition that applies: an attributes node, or for a
shader slot the shader.
dropped: Vec<&'a str>The definitions dropped only for being connected later, in connection order.
Trait Implementations§
Source§impl<'a> Clone for OrderDecided<'a>
impl<'a> Clone for OrderDecided<'a>
Source§impl<'a> Debug for OrderDecided<'a>
impl<'a> Debug for OrderDecided<'a>
Source§impl Display for OrderDecided<'_>
impl Display for OrderDecided<'_>
impl<'a> Eq for OrderDecided<'a>
Source§impl<'a> PartialEq for OrderDecided<'a>
impl<'a> PartialEq for OrderDecided<'a>
impl<'a> StructuralPartialEq for OrderDecided<'a>
Auto Trait Implementations§
impl<'a> Forget for OrderDecided<'a>
impl<'a> Freeze for OrderDecided<'a>
impl<'a> Move for OrderDecided<'a>
impl<'a> RefUnwindSafe for OrderDecided<'a>
impl<'a> Send for OrderDecided<'a>
impl<'a> Sync for OrderDecided<'a>
impl<'a> Unpin for OrderDecided<'a>
impl<'a> UnsafeUnpin for OrderDecided<'a>
impl<'a> UnwindSafe for OrderDecided<'a>
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
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
key and return true if they are equal.