[][src]Struct sunrise_fs::detail::PartitionIterator

struct PartitionIterator<'a> {
    inner: &'a mut dyn IStorage<Error = Error>,
    partition_table_start: u64,
    partition_entry_count: u64,
    partition_entry_size: u64,
    position: u64,
    block_at_free_entry: bool,
}

Iterator over GPT partitions

Fields

inner: &'a mut dyn IStorage<Error = Error>

The IStorage used.

partition_table_start: u64

Partition sector start.

partition_entry_count: u64

Partition count.

partition_entry_size: u64

Partition entry size

position: u64

Current position of the iterator.

block_at_free_entry: bool

Stop the iterator at free entries.

Implementations

impl<'a> PartitionIterator<'a>[src]

pub fn new(
    inner: &'a mut dyn IStorage<Error = Error>,
    block_at_free_entry: bool
) -> LibUserResult<Self>
[src]

Create a new partition iterator.

Trait Implementations

impl<'a> Debug for PartitionIterator<'a>[src]

impl<'a> Iterator for PartitionIterator<'a>[src]

type Item = LibUserResult<GPTPartitionEntry>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for PartitionIterator<'a>

impl<'a> Send for PartitionIterator<'a>

impl<'a> Sync for PartitionIterator<'a>

impl<'a> Unpin for PartitionIterator<'a>

impl<'a> !UnwindSafe for PartitionIterator<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> SizedIPCBuffer for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.