pub enum IndentPattern {
Fixed {
spaces: usize,
},
FieldNameLength,
}Expand description
Continuation-line indent pattern for multi-line deb822 field values.
Mirrors deb822_lossless::IndentPattern but is serde-serialisable
so it can travel over the LSP wire alongside actions.
Variants§
Fixed
All continuation lines use exactly spaces leading spaces.
FieldNameLength
Continuation lines align with the column after the field name and
": ", i.e. field_name.len() + 2 spaces. The deb822 default for
most fields.
Implementations§
Source§impl IndentPattern
impl IndentPattern
Sourcepub fn to_deb822(&self) -> IndentPattern
pub fn to_deb822(&self) -> IndentPattern
Convert to the underlying deb822_lossless pattern for the
applier.
Trait Implementations§
Source§impl Clone for IndentPattern
impl Clone for IndentPattern
Source§fn clone(&self) -> IndentPattern
fn clone(&self) -> IndentPattern
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 IndentPattern
impl Debug for IndentPattern
Source§impl<'de> Deserialize<'de> for IndentPattern
impl<'de> Deserialize<'de> for IndentPattern
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 PartialEq for IndentPattern
impl PartialEq for IndentPattern
Source§fn eq(&self, other: &IndentPattern) -> bool
fn eq(&self, other: &IndentPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndentPattern
impl Serialize for IndentPattern
impl Eq for IndentPattern
impl StructuralPartialEq for IndentPattern
Auto Trait Implementations§
impl Freeze for IndentPattern
impl RefUnwindSafe for IndentPattern
impl Send for IndentPattern
impl Sync for IndentPattern
impl Unpin for IndentPattern
impl UnsafeUnpin for IndentPattern
impl UnwindSafe for IndentPattern
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.