Struct biome_formatter::LineWidth
source · pub struct LineWidth(/* private fields */);
Expand description
Validated value for the line_width
formatter options
The allowed range of values is 1..=320
Implementations§
Trait Implementations§
source§impl Deserializable for LineWidth
impl Deserializable for LineWidth
source§fn deserialize(
value: &impl DeserializableValue,
name: &str,
diagnostics: &mut Vec<DeserializationDiagnostic>
) -> Option<Self>
fn deserialize( value: &impl DeserializableValue, name: &str, diagnostics: &mut Vec<DeserializationDiagnostic> ) -> Option<Self>
Returns the deserialized form of
value
, or None
if it failed.
Any diagnostics emitted during deserialization are appended to diagnostics
.
name
corresponds to the name used in a diagnostic to designate the deserialized value.source§impl From<LineWidth> for PrintWidth
impl From<LineWidth> for PrintWidth
source§impl PartialEq for LineWidth
impl PartialEq for LineWidth
impl Copy for LineWidth
impl Eq for LineWidth
impl StructuralPartialEq for LineWidth
Auto Trait Implementations§
impl Freeze for LineWidth
impl RefUnwindSafe for LineWidth
impl Send for LineWidth
impl Sync for LineWidth
impl Unpin for LineWidth
impl UnwindSafe for LineWidth
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<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.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.