pub struct CapeCollection<CollectionItem: CapeSmartPointer> {
pub(crate) interface: *mut CAPEOPEN_1_2_ICapeCollection,
phantom_collection_item: PhantomData<CollectionItem>,
}Fields§
§interface: *mut CAPEOPEN_1_2_ICapeCollection§phantom_collection_item: PhantomData<CollectionItem>Implementations§
Source§impl<CollectionItem: CapeSmartPointer> CapeCollection<CollectionItem>
impl<CollectionItem: CapeSmartPointer> CapeCollection<CollectionItem>
pub fn item_by_index( &self, index: CapeInteger, ) -> Result<CollectionItem, COBIAError>
pub fn item_by_name<TypeOfName: CapeStringProviderIn>( &self, name: &TypeOfName, ) -> Result<CollectionItem, COBIAError>
pub fn get_count(&self) -> Result<CapeInteger, COBIAError>
Trait Implementations§
Source§impl<CollectionItem: CapeSmartPointer> CapeSmartPointer for CapeCollection<CollectionItem>
impl<CollectionItem: CapeSmartPointer> CapeSmartPointer for CapeCollection<CollectionItem>
type Interface = _CAPEOPEN_1_2_ICapeCollection
Source§fn as_cape_interface_pointer(&self) -> *mut ICapeInterface
fn as_cape_interface_pointer(&self) -> *mut ICapeInterface
Get the ICapeInterface Read more
Source§fn get_interface_id() -> &'static CapeUUID
fn get_interface_id() -> &'static CapeUUID
Get the interface ID Read more
Source§fn from_object<T: CapeSmartPointer>(
smart_pointer: &T,
) -> Result<Self, COBIAError>
fn from_object<T: CapeSmartPointer>( smart_pointer: &T, ) -> Result<Self, COBIAError>
Get an interface wrapper instance from another object Read more
Source§fn from_interface_pointer(interface: *mut Self::Interface) -> Self
fn from_interface_pointer(interface: *mut Self::Interface) -> Self
Get an interface wrapper instance from an interface pointer of the wrapped type Read more
Source§fn attach(interface: *mut Self::Interface) -> Self
fn attach(interface: *mut Self::Interface) -> Self
Get an interface wrapper instance from an interface pointer of the wrapped type, without adding a reference Read more
Source§fn detach(self) -> *mut Self::Interface
fn detach(self) -> *mut Self::Interface
Return an interface pointer and release ownership, without decreasing a reference Read more
Source§fn from_cape_interface_pointer(
interface: *mut ICapeInterface,
) -> Result<Self, COBIAError>
fn from_cape_interface_pointer( interface: *mut ICapeInterface, ) -> Result<Self, COBIAError>
Get an interface wrapper instance from any interface pointer Read more
Source§impl<CollectionItem: CapeSmartPointer> Clone for CapeCollection<CollectionItem>
impl<CollectionItem: CapeSmartPointer> Clone for CapeCollection<CollectionItem>
Source§impl<CollectionItem: CapeSmartPointer> Drop for CapeCollection<CollectionItem>
impl<CollectionItem: CapeSmartPointer> Drop for CapeCollection<CollectionItem>
Auto Trait Implementations§
impl<CollectionItem> Freeze for CapeCollection<CollectionItem>
impl<CollectionItem> RefUnwindSafe for CapeCollection<CollectionItem>where
CollectionItem: RefUnwindSafe,
impl<CollectionItem> !Send for CapeCollection<CollectionItem>
impl<CollectionItem> !Sync for CapeCollection<CollectionItem>
impl<CollectionItem> Unpin for CapeCollection<CollectionItem>where
CollectionItem: Unpin,
impl<CollectionItem> UnwindSafe for CapeCollection<CollectionItem>where
CollectionItem: 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