Struct uefi::proto::device_path::build::acpi::AdrSlice

source ·
pub struct AdrSlice(/* private fields */);
Expand description

Wrapper for u32 ADR values that enforces at least one element is present.

Implementations§

source§

impl AdrSlice

source

pub fn new(slice: &[u32]) -> Option<&Self>

Create a new AdrSlice. Returns None if the input slice is empty.

Trait Implementations§

source§

impl Debug for AdrSlice

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more