#[repr(C)]pub struct Slots { /* private fields */ }
Expand description
Represents a list of LoaderSlotAcceptanceHistory items.
Implementations§
Source§impl Slots
impl Slots
Sourcepub fn items(&self) -> &[LoaderSlotAcceptanceHistory]
pub fn items(&self) -> &[LoaderSlotAcceptanceHistory]
Gets a reference to the list of set Slots items.
Sourcepub fn set_items(&mut self, val: &[LoaderSlotAcceptanceHistory])
pub fn set_items(&mut self, val: &[LoaderSlotAcceptanceHistory])
Sets the list of Slots items.
Sourcepub fn with_items(self, val: &[LoaderSlotAcceptanceHistory]) -> Self
pub fn with_items(self, val: &[LoaderSlotAcceptanceHistory]) -> Self
Builder function that sets the list of Slots items.
Sourcepub fn push_item(&mut self, val: LoaderSlotAcceptanceHistory)
pub fn push_item(&mut self, val: LoaderSlotAcceptanceHistory)
Pushes a Slots onto the end of the list.
No-op if the list is at capacity.
Trait Implementations§
impl StructuralPartialEq for Slots
Auto Trait Implementations§
impl Freeze for Slots
impl RefUnwindSafe for Slots
impl Send for Slots
impl Sync for Slots
impl Unpin for Slots
impl UnwindSafe for Slots
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