Struct librashader_reflect::reflect::semantics::Semantic
source · pub struct Semantic<T, I = usize> {
pub semantics: T,
pub index: I,
}
Expand description
A unit of unique or indexed semantic.
Fields§
§semantics: T
The semantics of this unit.
index: I
The index of the semantic if not unique.
Trait Implementations§
source§impl From<Semantic<TextureSemantics>> for UniformBinding
impl From<Semantic<TextureSemantics>> for UniformBinding
source§fn from(value: Semantic<TextureSemantics>) -> Self
fn from(value: Semantic<TextureSemantics>) -> Self
Converts to this type from the input type.
source§impl<T: PartialEq, I: PartialEq> PartialEq for Semantic<T, I>
impl<T: PartialEq, I: PartialEq> PartialEq for Semantic<T, I>
impl<T: Copy, I: Copy> Copy for Semantic<T, I>
impl<T: Eq, I: Eq> Eq for Semantic<T, I>
impl<T, I> StructuralPartialEq for Semantic<T, I>
Auto Trait Implementations§
impl<T, I> RefUnwindSafe for Semantic<T, I>where
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I> Send for Semantic<T, I>
impl<T, I> Sync for Semantic<T, I>
impl<T, I> Unpin for Semantic<T, I>
impl<T, I> UnwindSafe for Semantic<T, I>where
I: UnwindSafe,
T: 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more