pub struct BindingResource<Server: ComputeServer> { /* private fields */ }
Expand description
Access to the underlying resource for a given binding.
Implementations§
Source§impl<Server: ComputeServer> BindingResource<Server>
impl<Server: ComputeServer> BindingResource<Server>
Source§impl<Server: ComputeServer> BindingResource<Server>
impl<Server: ComputeServer> BindingResource<Server>
Sourcepub fn resource(&self) -> &<Server::Storage as ComputeStorage>::Resource
pub fn resource(&self) -> &<Server::Storage as ComputeStorage>::Resource
access the underlying resource. Note: The resource might be bigger than just the original allocation for the binding. Only the part for the original binding is guaranteed to remain, other parts of the resource will be re-used.
Sourcepub fn into_resource(self) -> <Server::Storage as ComputeStorage>::Resource
pub fn into_resource(self) -> <Server::Storage as ComputeStorage>::Resource
Auto Trait Implementations§
impl<Server> Freeze for BindingResource<Server>
impl<Server> RefUnwindSafe for BindingResource<Server>
impl<Server> Send for BindingResource<Server>
impl<Server> Sync for BindingResource<Server>
impl<Server> Unpin for BindingResource<Server>
impl<Server> UnwindSafe for BindingResource<Server>
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