Struct forest_actor::miner::PartitionSectorMap [−][src]
pub struct PartitionSectorMap(_);
Expand description
Maps partitions to sector bitfields.
Implementations
impl PartitionSectorMap
[src]
impl PartitionSectorMap
[src]pub fn add_values(
&mut self,
partition_idx: usize,
sector_numbers: Vec<u64>
) -> Result<(), String>
[src]
pub fn add_values(
&mut self,
partition_idx: usize,
sector_numbers: Vec<u64>
) -> Result<(), String>
[src]Records the given sectors at the given partition.
pub fn add(
&mut self,
partition_idx: usize,
sector_numbers: UnvalidatedBitField
) -> Result<(), String>
[src]
pub fn add(
&mut self,
partition_idx: usize,
sector_numbers: UnvalidatedBitField
) -> Result<(), String>
[src]Records the given sector bitfield at the given partition index, merging it with any existing bitfields if necessary.
pub fn count(&mut self) -> Result<(u64, u64), String>
[src]
pub fn count(&mut self) -> Result<(u64, u64), String>
[src]Counts the number of partitions & sectors within the map.
pub fn partitions(&self) -> Vec<usize>ⓘ
[src]
pub fn partitions(&self) -> Vec<usize>ⓘ
[src]Returns a sorted vec of partitions in the map.
pub fn iter(
&mut self
) -> impl Iterator<Item = (usize, &mut UnvalidatedBitField)> + '_
[src]
pub fn iter(
&mut self
) -> impl Iterator<Item = (usize, &mut UnvalidatedBitField)> + '_
[src]Walks the partitions in the map, in order of increasing index.
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
Trait Implementations
impl Default for PartitionSectorMap
[src]
impl Default for PartitionSectorMap
[src]fn default() -> PartitionSectorMap
[src]
fn default() -> PartitionSectorMap
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for PartitionSectorMap
[src]
impl<'de> Deserialize<'de> for PartitionSectorMap
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for PartitionSectorMap
[src]
impl Serialize for PartitionSectorMap
[src]Auto Trait Implementations
impl RefUnwindSafe for PartitionSectorMap
impl Send for PartitionSectorMap
impl Sync for PartitionSectorMap
impl Unpin for PartitionSectorMap
impl UnwindSafe for PartitionSectorMap
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,