pub struct Edge {
pub size: Option<usize>,
pub ratio: usize,
pub minimum_size: usize,
}Expand description
One participant in a ratio_resolve distribution.
Fields§
§size: Option<usize>A fixed size, if pinned.
ratio: usizeFlex weight when size is None (defaults to 1 upstream).
minimum_size: usizeThe smallest size a flexible edge may shrink to.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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