pub enum Pointer {
Segment(&'static str, Segment),
Own(&'static str),
}Expand description
Where the thread pointer is read from.
Variants§
Segment(&'static str, Segment)
A load at zero in a segment, since the word at the front of the block is its own address.
That is x86-64, whose %fs is not a register a program can read.
Own(&'static str)
An instruction that reads a system register, which is AArch64’s mrs of tpidr_el0.
Trait Implementations§
impl Copy for Pointer
impl Eq for Pointer
impl StructuralPartialEq for Pointer
Auto Trait Implementations§
impl Freeze for Pointer
impl RefUnwindSafe for Pointer
impl Send for Pointer
impl Sync for Pointer
impl Unpin for Pointer
impl UnsafeUnpin for Pointer
impl UnwindSafe for Pointer
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