pub struct BindingResource<Resource: Send> { /* private fields */ }Expand description
Access to the underlying resource for a given binding.
Implementations§
Source§impl<Resource: Send> BindingResource<Resource>
 
impl<Resource: Send> BindingResource<Resource>
Source§impl<Resource: Send> BindingResource<Resource>
 
impl<Resource: Send> BindingResource<Resource>
Sourcepub fn resource(&self) -> &Resource
 
pub fn resource(&self) -> &Resource
access the underlying resource. Note: The resource might be bigger than the part required by the binding (e.g. a big buffer where the binding only refers to a slice of it). Only the part required by the binding is guaranteed to remain, other parts of this resource will be re-used.
Trait Implementations§
Auto Trait Implementations§
impl<Resource> Freeze for BindingResource<Resource>where
    Resource: Freeze,
impl<Resource> RefUnwindSafe for BindingResource<Resource>where
    Resource: RefUnwindSafe,
impl<Resource> Send for BindingResource<Resource>
impl<Resource> Sync for BindingResource<Resource>where
    Resource: Sync,
impl<Resource> Unpin for BindingResource<Resource>where
    Resource: Unpin,
impl<Resource> UnwindSafe for BindingResource<Resource>where
    Resource: 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