Struct kernel_hal::user::UserPtr [−][src]
Implementations
impl<T, P: Policy> UserPtr<T, P>
[src]
pub fn from_addr_size(addr: usize, size: usize) -> Result<Self, Error>
[src]
pub fn is_null(&self) -> bool
[src]
pub fn add(&self, count: usize) -> Self
[src]
pub fn as_ptr(&self) -> *mut T
[src]
pub fn check(&self) -> Result<(), Error>
[src]
impl<T, P: Read> UserPtr<T, P>
[src]
pub fn as_ref(&self) -> Result<&'static T, Error>
[src]
pub fn read(&self) -> Result<T, Error>
[src]
pub fn read_if_not_null(&self) -> Result<Option<T>, Error>
[src]
pub fn read_array(&self, len: usize) -> Result<Vec<T>, Error>
[src]
impl<P: Read> UserPtr<u8, P>
[src]
pub fn read_string(&self, len: usize) -> Result<String, Error>
[src]
pub fn read_cstring(&self) -> Result<String, Error>
[src]
impl<P: Read> UserPtr<UserPtr<u8, P>, P>
[src]
impl<T, P: Write> UserPtr<T, P>
[src]
pub fn write(&mut self, value: T) -> Result<(), Error>
[src]
pub fn write_if_not_null(&mut self, value: T) -> Result<(), Error>
[src]
pub fn write_array(&mut self, values: &[T]) -> Result<(), Error>
[src]
impl<P: Write> UserPtr<u8, P>
[src]
impl<P: Policy> UserPtr<T, In>
[src]
Trait Implementations
impl<T, P: Policy> Debug for UserPtr<T, P>
[src]
impl<T, P: Policy> From<usize> for UserPtr<T, P>
[src]
impl<T, P: Policy> Send for UserPtr<T, P>
[src]
impl<T, P: Policy> Sync for UserPtr<T, P>
[src]
Auto Trait Implementations
impl<T, P> RefUnwindSafe for UserPtr<T, P> where
P: RefUnwindSafe,
T: RefUnwindSafe,
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, P> Unpin for UserPtr<T, P> where
P: Unpin,
P: Unpin,
impl<T, P> UnwindSafe for UserPtr<T, P> where
P: UnwindSafe,
T: RefUnwindSafe,
P: UnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,