pub struct ThreadIdVec {
pub run_destructor: bool,
/* private fields */
}Fields§
§run_destructor: boolWhether to run the destructor on drop (prevents double-free when cloned to C)
Implementations§
Source§impl ThreadIdVec
impl ThreadIdVec
pub fn new() -> ThreadIdVec
pub fn with_capacity(cap: usize) -> Self
pub const fn from_const_slice(input: &'static [ThreadId]) -> Self
pub fn from_vec(input: Vec<ThreadId>) -> Self
pub fn iter(&self) -> Iter<'_, ThreadId>
pub fn ptr_as_usize(&self) -> usize
pub const fn len(&self) -> usize
pub const fn capacity(&self) -> usize
pub const fn is_empty(&self) -> bool
pub fn get(&self, index: usize) -> Option<&ThreadId>
pub fn as_slice(&self) -> &[ThreadId]
Source§impl ThreadIdVec
impl ThreadIdVec
pub fn from_copy_on_write(input: Cow<'static, [ThreadId]>) -> ThreadIdVec
Sourcepub fn clone_self(&self) -> Self
pub fn clone_self(&self) -> Self
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Sourcepub fn into_library_owned_vec(self) -> Vec<ThreadId>
pub fn into_library_owned_vec(self) -> Vec<ThreadId>
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Trait Implementations§
Source§impl AsRef<[ThreadId]> for ThreadIdVec
impl AsRef<[ThreadId]> for ThreadIdVec
Source§impl Clone for ThreadIdVec
impl Clone for ThreadIdVec
Source§impl Debug for ThreadIdVec
impl Debug for ThreadIdVec
Source§impl Default for ThreadIdVec
impl Default for ThreadIdVec
Source§impl Drop for ThreadIdVec
impl Drop for ThreadIdVec
Source§impl From<&'static [ThreadId]> for ThreadIdVec
impl From<&'static [ThreadId]> for ThreadIdVec
Source§fn from(input: &'static [ThreadId]) -> ThreadIdVec
fn from(input: &'static [ThreadId]) -> ThreadIdVec
Converts to this type from the input type.
Source§impl FromIterator<ThreadId> for ThreadIdVec
impl FromIterator<ThreadId> for ThreadIdVec
Source§impl PartialEq for ThreadIdVec
impl PartialEq for ThreadIdVec
Source§impl PartialOrd for ThreadIdVec
impl PartialOrd for ThreadIdVec
impl Send for ThreadIdVec
impl Sync for ThreadIdVec
Auto Trait Implementations§
impl Freeze for ThreadIdVec
impl RefUnwindSafe for ThreadIdVec
impl Unpin for ThreadIdVec
impl UnwindSafe for ThreadIdVec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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