[−][src]Enum justify::InsertAt
Where to insert spaces (use with Settings
)
Variants
Spaces are added starting at the left.
Spaces are added starting at the right.
Default; e.g. if there are 5 places spaced could be added, the first space goes in place 1, the second space in place 5, the third space in place 2, fourth space in place 4, etc.
The function receives the current 0-indexed iteration in position 1, the total number of spaces to be added in position 2, the number of possible entry points in position 3, and the line being justified in position 4. This could be used, for example, to implement insertion of spaces at random points. If using this, you may not need every argument, but they are provided anyway for maximum extensibility.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for InsertAt<'a>
impl<'a> !Send for InsertAt<'a>
impl<'a> !Sync for InsertAt<'a>
impl<'a> Unpin for InsertAt<'a>
impl<'a> !UnwindSafe for InsertAt<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,