pub enum SplitEntry {
Slot(SplitSlot),
Group(Vec<SplitSlot>),
}Expand description
One entry in a Split body: a single slot, or a rhythm group
{ a | b }* whose slot pattern repeats to fill the space left by the
entries outside it.
Split(X) { 1.2: Corner | { 0.5: Pier | ~1: Win }* | 1.2: Corner }Constraints (enforced at parse / derivation): at most one group per
split, no nested groups. Allocation: fixed entries outside the group are
placed first; the group tiles k whole copies of its nominal width into
the remainder; leftover space goes to floating slots outside the group,
or — when there are none — the copies stretch uniformly to close the gap
exactly. Sizes inside a copy resolve like a mini-split of the copy width.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SplitEntry
impl Clone for SplitEntry
Source§fn clone(&self) -> SplitEntry
fn clone(&self) -> SplitEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SplitEntry
impl Debug for SplitEntry
Source§impl<'de> Deserialize<'de> for SplitEntry
impl<'de> Deserialize<'de> for SplitEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SplitSlot> for SplitEntry
impl From<SplitSlot> for SplitEntry
Source§impl PartialEq for SplitEntry
impl PartialEq for SplitEntry
Source§impl Serialize for SplitEntry
impl Serialize for SplitEntry
impl StructuralPartialEq for SplitEntry
Auto Trait Implementations§
impl Freeze for SplitEntry
impl RefUnwindSafe for SplitEntry
impl Send for SplitEntry
impl Sync for SplitEntry
impl Unpin for SplitEntry
impl UnsafeUnpin for SplitEntry
impl UnwindSafe for SplitEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more