Struct flattiverse_connector::UniversalHolder
source · pub struct UniversalHolder<T: UniversalEnumerable> { /* private fields */ }
Implementations
sourceimpl<T: UniversalEnumerable> UniversalHolder<T>
impl<T: UniversalEnumerable> UniversalHolder<T>
pub fn new(list: IndexList<T>) -> UniversalHolder<T>
pub fn list(&self) -> Vec<Arc<T>>
pub fn get_for_index(&self, index: usize) -> Option<Arc<T>>
pub fn get_for_index_weak(&self, index: usize) -> Weak<T>
pub fn get_for_name(&self, name: &str) -> Option<Arc<T>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Auto Trait Implementations
impl<T> RefUnwindSafe for UniversalHolder<T>where
T: RefUnwindSafe,
impl<T> Send for UniversalHolder<T>where
T: Send + Sync,
impl<T> Sync for UniversalHolder<T>where
T: Send + Sync,
impl<T> Unpin for UniversalHolder<T>
impl<T> UnwindSafe for UniversalHolder<T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more