pub struct Shared<T, P>(_)
where
P: SharedPointerKind;Expand description
A shared reference wrapper type, based on either std::sync::Arc or std::rc::Rc.
Implementations
sourceimpl<'a, P> Shared<Device<P>, P> where
P: SharedPointerKind,
impl<'a, P> Shared<Device<P>, P> where
P: SharedPointerKind,
pub fn new_buffer(&self, info: impl Into<BufferInfo>) -> Shared<Buffer<P>, P>
pub fn new_compute_pipeline(
&self,
info: impl Into<ComputePipelineInfo>
) -> Shared<ComputePipeline<P>, P>
pub fn new_image(&self, info: impl Into<ImageInfo>) -> ImageBinding<P>
pub fn new_image_raw(&self, info: impl Into<ImageInfo>) -> Image<P>
pub fn new_graphic_pipeline<S>(
&self,
info: impl Into<GraphicPipelineInfo>,
shaders: impl IntoIterator<Item = S>
) -> Shared<GraphicPipeline<P>, P> where
S: Into<Shader>,
pub fn new_ray_trace_pipeline<S>(
&self,
info: impl Into<RayTracePipelineInfo>,
shaders: impl IntoIterator<Item = S>
) -> Shared<RayTracePipeline<P>, P> where
S: Into<Shader>,
sourceimpl<T, P> Shared<T, P> where
P: SharedPointerKind,
impl<T, P> Shared<T, P> where
P: SharedPointerKind,
Trait Implementations
sourceimpl<'a, P> Bind<PassRef<'a, P>, PipelinePassRef<'a, ComputePipeline<P>, P>, P> for &'a Shared<ComputePipeline<P>, P> where
P: SharedPointerKind + 'static,
impl<'a, P> Bind<PassRef<'a, P>, PipelinePassRef<'a, ComputePipeline<P>, P>, P> for &'a Shared<ComputePipeline<P>, P> where
P: SharedPointerKind + 'static,
fn bind(
self,
pass: PassRef<'a, P>
) -> PipelinePassRef<'_, ComputePipeline<P>, P>
sourceimpl<'a, P> Bind<PassRef<'a, P>, PipelinePassRef<'a, GraphicPipeline<P>, P>, P> for &'a Shared<GraphicPipeline<P>, P> where
P: SharedPointerKind + 'static,
impl<'a, P> Bind<PassRef<'a, P>, PipelinePassRef<'a, GraphicPipeline<P>, P>, P> for &'a Shared<GraphicPipeline<P>, P> where
P: SharedPointerKind + 'static,
fn bind(
self,
pass: PassRef<'a, P>
) -> PipelinePassRef<'_, GraphicPipeline<P>, P>
sourceimpl<'a, P> Bind<PassRef<'a, P>, PipelinePassRef<'a, RayTracePipeline<P>, P>, P> for &'a Shared<RayTracePipeline<P>, P> where
P: SharedPointerKind + 'static,
impl<'a, P> Bind<PassRef<'a, P>, PipelinePassRef<'a, RayTracePipeline<P>, P>, P> for &'a Shared<RayTracePipeline<P>, P> where
P: SharedPointerKind + 'static,
fn bind(
self,
pass: PassRef<'a, P>
) -> PipelinePassRef<'_, RayTracePipeline<P>, P>
sourceimpl<T, P> Clone for Shared<T, P> where
P: SharedPointerKind,
impl<T, P> Clone for Shared<T, P> where
P: SharedPointerKind,
sourceimpl<T, P> Default for Shared<T, P> where
P: SharedPointerKind,
T: Default,
impl<T, P> Default for Shared<T, P> where
P: SharedPointerKind,
T: Default,
sourceimpl<T, P> Deref for Shared<T, P> where
P: SharedPointerKind,
impl<T, P> Deref for Shared<T, P> where
P: SharedPointerKind,
sourceimpl<T, P> From<T> for Shared<T, P> where
P: SharedPointerKind,
impl<T, P> From<T> for Shared<T, P> where
P: SharedPointerKind,
sourceimpl<T: Ord, P: Ord> Ord for Shared<T, P> where
P: SharedPointerKind,
impl<T: Ord, P: Ord> Ord for Shared<T, P> where
P: SharedPointerKind,
sourcefn partial_cmp(&self, other: &Shared<T, P>) -> Option<Ordering>
fn partial_cmp(&self, other: &Shared<T, P>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<T: Eq, P: Eq> Eq for Shared<T, P> where
P: SharedPointerKind,
impl<T, P> StructuralEq for Shared<T, P> where
P: SharedPointerKind,
Auto Trait Implementations
impl<T, P> RefUnwindSafe for Shared<T, P> where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, P> Send for Shared<T, P> where
P: Send,
T: Send,
impl<T, P> Sync for Shared<T, P> where
P: Sync,
T: Sync,
impl<T, P> Unpin for Shared<T, P> where
P: Unpin,
T: Unpin,
impl<T, P> UnwindSafe for Shared<T, P> where
P: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more