pub struct BufferNode { /* private fields */ }Expand description
A graph-local handle for a bound resource.
Node handles are only valid with the graph that produced them.
When the checked feature is enabled, using a node with a different graph will
panic immediately.
When checked is disabled, this ownership check is skipped for zero-overhead
builds, so cross-graph node misuse is invalid and may resolve to the wrong resource.
Trait Implementations§
Source§impl Clone for BufferNode
impl Clone for BufferNode
Source§fn clone(&self) -> BufferNode
fn clone(&self) -> BufferNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BufferNode
Source§impl Debug for BufferNode
impl Debug for BufferNode
impl Eq for BufferNode
Source§impl From<BufferNode> for AnyBufferNode
impl From<BufferNode> for AnyBufferNode
Source§fn from(node: BufferNode) -> Self
fn from(node: BufferNode) -> Self
Converts to this type from the input type.
Source§impl From<BufferNode> for AnyNode
impl From<BufferNode> for AnyNode
Source§fn from(node: BufferNode) -> Self
fn from(node: BufferNode) -> Self
Converts to this type from the input type.
Source§impl<'a> From<BufferNode> for RecordSelection<'a>
impl<'a> From<BufferNode> for RecordSelection<'a>
Source§fn from(node: BufferNode) -> Self
fn from(node: BufferNode) -> Self
Converts to this type from the input type.
Source§impl Hash for BufferNode
impl Hash for BufferNode
Source§impl Node for BufferNode
impl Node for BufferNode
Source§impl Ord for BufferNode
impl Ord for BufferNode
Source§fn cmp(&self, other: &BufferNode) -> Ordering
fn cmp(&self, other: &BufferNode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BufferNode
impl PartialEq for BufferNode
Source§fn eq(&self, other: &BufferNode) -> bool
fn eq(&self, other: &BufferNode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BufferNode
impl PartialOrd for BufferNode
impl StructuralPartialEq for BufferNode
Source§impl Subresource for BufferNode
impl Subresource for BufferNode
Source§type Info = <BufferNode as Subresource>::Range
type Info = <BufferNode as Subresource>::Range
The information about the subresource when bound directly to shader descriptors.
Source§type Range = BufferSubresourceRange
type Range = BufferSubresourceRange
The information about the subresource when used indirectly by any part of a graph.
Auto Trait Implementations§
impl Freeze for BufferNode
impl RefUnwindSafe for BufferNode
impl Send for BufferNode
impl Sync for BufferNode
impl Unpin for BufferNode
impl UnsafeUnpin for BufferNode
impl UnwindSafe for BufferNode
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