Docs.rs
  • dprint-core-0.55.2
    • dprint-core 0.55.2
    • Docs.rs crate page
    • MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • dsherret
    • Dependencies
      • anyhow ^1.0.53 normal
      • bumpalo ^3.9.1 normal
      • crossbeam-channel ^0.5.4 normal
      • indexmap ^1.8.0 normal
      • parking_lot ^0.12.0 normal
      • rustc-hash ^1.1.0 normal
      • serde ^1.0.130 normal
      • serde_json ^1.0 normal
      • tokio ^1 normal
      • tokio-util ^0.7.0 normal
      • libc ^0.2.114 normal
      • winapi ^0.3.9 normal
    • Versions
    • 40.15% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

Module conditions

  • Structs
  • Functions
logo
Change settings

Module dprint_core::formatting::conditions

source · [−]

Structs

NewLineIfHangingSpaceOtherwiseOptions

Functions

if_above_width

Prints the provided items when the current relative column number is above the specified width.

if_above_width_or

Prints the provided true_items when the current relative column number is above the specified width or prints the false_items otherwise.

if_false
if_true
if_true_or
indent_if_start_of_line
indent_if_start_of_line_or_start_of_line_indented
new_line_if_hanging
new_line_if_hanging_space_otherwise
new_line_if_multiple_lines_space_or_new_line_otherwise
single_indent_if_start_of_line
with_indent_if_start_of_line_indented