#[repr(C)]pub struct Span<T> {
pub data: *mut T,
pub size: usize,
}Expand description
Span<T> — nonstd::span, a pointer and a count, by value. The server
reads or fills size elements at data, so both must describe memory the
caller owns for the call.
Fields§
§data: *mut T§size: usizeImplementations§
Trait Implementations§
impl<T> Copy for Span<T>where
T: Copy,
impl<T> Eq for Span<T>where
T: Eq,
impl<T> StructuralPartialEq for Span<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> !Send for Span<T>
impl<T> !Sync for Span<T>
impl<T> Freeze for Span<T>
impl<T> RefUnwindSafe for Span<T>where
*mut T: RefUnwindSafe,
impl<T> Unpin for Span<T>
impl<T> UnsafeUnpin for Span<T>where
*mut T: UnsafeUnpin,
impl<T> UnwindSafe for Span<T>where
*mut T: UnwindSafe,
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