Struct ResourcesHolderMut
pub struct ResourcesHolderMut<'r> { /* private fields */ }Implementations§
§impl<'r> ResourcesHolderMut<'r>
impl<'r> ResourcesHolderMut<'r>
pub unsafe fn new( res: *mut ResourcesHolderUnsafeFfi, types: &'r TypesRegistryCache, ) -> ResourcesHolderMut<'r>
pub fn insert<T>(&mut self, data: T) -> Option<T>where
T: Resource,
pub fn insert_any(&mut self, data: FfiAny) -> Option<FfiAny>
pub fn remove<T>(&mut self) -> Option<T>where
T: Resource,
pub fn remove_any( &mut self, type_info: &'static FfiExtendedTypeInfo, ) -> Option<FfiAny>
pub fn get_ptr<T>(&self) -> Option<*mut T>where
T: Resource,
pub fn get_ptr_any( &self, type_info: &'static FfiExtendedTypeInfo, ) -> Option<FfiAnyPtr>
pub fn get_all(&self, handler: impl FnMut(FfiAnyPtr))
pub fn into_get<T>(self) -> Option<&'r T>where
T: Resource,
pub fn into_get_any( self, type_info: &'static FfiExtendedTypeInfo, ) -> Option<FfiAnyRef<'r>>
pub fn into_get_mut<T>(self) -> Option<&'r mut T>where
T: Resource,
pub fn into_get_mut_any( self, type_info: &'static FfiExtendedTypeInfo, ) -> Option<FfiAnyMut<'r>>
§impl<'r, 'p> ResourcesHolderMut<'r>where
'r: 'p,
impl<'r, 'p> ResourcesHolderMut<'r>where
'r: 'p,
pub fn get<T>(&'p self) -> Option<&'p T>where
T: Resource,
pub fn get_any( &'p self, type_info: &'static FfiExtendedTypeInfo, ) -> Option<FfiAnyRef<'p>>
pub fn get_mut<T>(&'p mut self) -> Option<&'p mut T>where
T: Resource,
pub fn get_mut_any( &'p mut self, type_info: &'static FfiExtendedTypeInfo, ) -> Option<FfiAnyMut<'p>>
pub fn as_mut(&'p mut self) -> ResourcesHolderMut<'p>
pub fn as_ref(&'p self) -> ResourcesHolderRef<'p>
Trait Implementations§
impl<'r> Send for ResourcesHolderMut<'r>
impl<'r> Sync for ResourcesHolderMut<'r>
§impl<'b> SystemParam for ResourcesHolderMut<'b>
impl<'b> SystemParam for ResourcesHolderMut<'b>
type Item<'e> = ResourcesHolderMut<'e>
fn fill_data_usage(usage: &mut DataUsageBuilder, _types: &TypesRegistryCache)
§unsafe fn new<'a>(
input: &'a SystemInput<'a>,
) -> Result<<ResourcesHolderMut<'b> as SystemParam>::Item<'a>, &'static str>
unsafe fn new<'a>( input: &'a SystemInput<'a>, ) -> Result<<ResourcesHolderMut<'b> as SystemParam>::Item<'a>, &'static str>
Safety Read more
Auto Trait Implementations§
impl<'r> Forget for ResourcesHolderMut<'r>
impl<'r> Freeze for ResourcesHolderMut<'r>
impl<'r> Move for ResourcesHolderMut<'r>
impl<'r> RefUnwindSafe for ResourcesHolderMut<'r>
impl<'r> Unpin for ResourcesHolderMut<'r>
impl<'r> UnsafeUnpin for ResourcesHolderMut<'r>
impl<'r> UnwindSafe for ResourcesHolderMut<'r>
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more