Struct linker_set::LinkerSet
source · pub struct LinkerSet<T>where
T: 'static,{ /* private fields */ }
Implementations§
source§impl<T> LinkerSet<T>where
T: 'static,
impl<T> LinkerSet<T>where
T: 'static,
sourcepub unsafe fn new(start: *const T, stop: *const T) -> Self
pub unsafe fn new(start: *const T, stop: *const T) -> Self
Create a new object to represent a linker set.
§Safety
The pointers must be start and end pointers generated by the linker.
pub fn iter(&self) -> LinkerSetIter<T> ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
source§impl<T> IntoIterator for LinkerSet<T>where
T: 'static,
impl<T> IntoIterator for LinkerSet<T>where
T: 'static,
impl<T: Send> Send for LinkerSet<T>
impl<T: Sync> Sync for LinkerSet<T>
Auto Trait Implementations§
impl<T> Freeze for LinkerSet<T>
impl<T> RefUnwindSafe for LinkerSet<T>where
T: RefUnwindSafe,
impl<T> Unpin for LinkerSet<T>
impl<T> UnwindSafe for LinkerSet<T>where
T: RefUnwindSafe,
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