Enum rustfmt_nightly::config::lists::__define_config_type_on_enum_ListTactic::ListTactic
source · [−]pub enum ListTactic {
Vertical,
Horizontal,
HorizontalVertical,
LimitedHorizontalVertical(usize),
Mixed,
}Variants
Vertical
One item per row.
Horizontal
All items on one row.
HorizontalVertical
Try Horizontal layout, if that fails then vertical.
LimitedHorizontalVertical(usize)
HorizontalVertical with a soft limit of n characters.
Mixed
Pack as many items as possible per row over (possibly) many rows.
Trait Implementations
sourceimpl Clone for ListTactic
impl Clone for ListTactic
sourcefn clone(&self) -> ListTactic
fn clone(&self) -> ListTactic
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl ConfigType for ListTactic
impl ConfigType for ListTactic
sourceimpl Debug for ListTactic
impl Debug for ListTactic
sourceimpl<'de> Deserialize<'de> for ListTactic
impl<'de> Deserialize<'de> for ListTactic
sourcefn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for ListTactic
impl Display for ListTactic
sourceimpl FromStr for ListTactic
impl FromStr for ListTactic
sourceimpl PartialEq<ListTactic> for ListTactic
impl PartialEq<ListTactic> for ListTactic
sourcefn eq(&self, other: &ListTactic) -> bool
fn eq(&self, other: &ListTactic) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ListTactic) -> bool
fn ne(&self, other: &ListTactic) -> bool
This method tests for !=.
sourceimpl Serialize for ListTactic
impl Serialize for ListTactic
impl Copy for ListTactic
impl Eq for ListTactic
impl StructuralEq for ListTactic
impl StructuralPartialEq for ListTactic
Auto Trait Implementations
impl RefUnwindSafe for ListTactic
impl Send for ListTactic
impl Sync for ListTactic
impl Unpin for ListTactic
impl UnwindSafe for ListTactic
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
Vertical: 0 bytesHorizontal: 0 bytesHorizontalVertical: 0 bytesLimitedHorizontalVertical: 8 bytesMixed: 0 bytes