Docs.rs
  • dprint-core-0.62.1
    • dprint-core 0.62.1
    • Docs.rs crate page
    • MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • dsherret
    • Dependencies
      • anyhow ^1.0.69 normal
      • bumpalo ^3.13.0 normal
      • crossbeam-channel ^0.5.7 normal
      • indexmap ^1.9.2 normal
      • parking_lot ^0.12.1 normal
      • rustc-hash ^1.1.0 normal
      • serde ^1.0.147 normal
      • serde_json ^1.0 normal
      • tokio ^1 normal
      • tokio-util ^0.7.7 normal
      • unicode-width ^0.1.10 normal
      • libc ^0.2.140 normal
      • winapi ^0.3.9 normal
    • Versions
    • 19.78% 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
?
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