pub struct Partition<L: MatchLabel> {
pub nodes: Vec<L::Node>,
pub label: &'static str,
pub tier_max: usize,
pub name_len_max: usize,
pub count: usize,
/* private fields */
}Fields§
§nodes: Vec<L::Node>§label: &'static str§tier_max: usize§name_len_max: usize§count: usizeImplementations§
Source§impl<L: MatchLabel> Partition<L>
impl<L: MatchLabel> Partition<L>
pub fn calculate_metadata(nodes: &[L::Node]) -> (usize, usize)where
L::Node: AsMetadataNode,
Trait Implementations§
Auto Trait Implementations§
impl<L> Freeze for Partition<L>
impl<L> RefUnwindSafe for Partition<L>
impl<L> Send for Partition<L>
impl<L> Sync for Partition<L>
impl<L> Unpin for Partition<L>
impl<L> UnsafeUnpin for Partition<L>
impl<L> UnwindSafe for Partition<L>
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