Enum paragraph_breaker::Item [−][src]
pub enum Item<T> { Box { width: i32, data: T, }, Glue { width: i32, stretch: i32, shrink: i32, }, Penalty { width: i32, penalty: i32, flagged: bool, }, }
Variants
Box
Fields of Box
width: i32 | |
data: T |
Glue
Fields of Glue
width: i32 | |
stretch: i32 | |
shrink: i32 |
Penalty
Fields of Penalty
width: i32 | |
penalty: i32 | |
flagged: bool |
Methods
impl<T> Item<T>
[src]
impl<T> Item<T>
pub fn is_box(&self) -> bool
[src]
pub fn is_box(&self) -> bool
pub fn is_glue(&self) -> bool
[src]
pub fn is_glue(&self) -> bool
pub fn penalty(&self) -> i32
[src]
pub fn penalty(&self) -> i32
pub fn flagged(&self) -> bool
[src]
pub fn flagged(&self) -> bool
Trait Implementations
impl<T: Debug> Debug for Item<T>
[src]
impl<T: Debug> Debug for Item<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Copy> Copy for Item<T>
[src]
impl<T: Copy> Copy for Item<T>
impl<T: Clone> Clone for Item<T>
[src]
impl<T: Clone> Clone for Item<T>