Home / Function/ fmt() — tailwindcss Function Reference

fmt() — tailwindcss Function Reference

Architecture documentation for the fmt() function in lib.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  12c88fa8_0e2d_385c_d946_41039b666208["fmt()"]
  45d3637d_63b6_933b_072c_47e0aeaa39a0["lib.rs"]
  12c88fa8_0e2d_385c_d946_41039b666208 -->|defined in| 45d3637d_63b6_933b_072c_47e0aeaa39a0
  2b35ce8a_c3be_4789_68ae_079abfc9ba93["map()"]
  12c88fa8_0e2d_385c_d946_41039b666208 -->|calls| 2b35ce8a_c3be_4789_68ae_079abfc9ba93
  style 12c88fa8_0e2d_385c_d946_41039b666208 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/lib.rs lines 333–376

    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match *self {
            Error::Partial(ref errs) => {
                let msgs: Vec<String> = errs.iter().map(|err| err.to_string()).collect();
                write!(f, "{}", msgs.join("\n"))
            }
            Error::WithLineNumber { line, ref err } => {
                write!(f, "line {}: {}", line, err)
            }
            Error::WithPath { ref path, ref err } => {
                write!(f, "{}: {}", path.display(), err)
            }
            Error::WithDepth { ref err, .. } => err.fmt(f),
            Error::Loop {
                ref ancestor,
                ref child,
            } => write!(
                f,
                "File system loop found: \
                           {} points to an ancestor {}",
                child.display(),
                ancestor.display()
            ),
            Error::Io(ref err) => err.fmt(f),
            Error::Glob {
                glob: None,
                ref err,
            } => write!(f, "{}", err),
            Error::Glob {
                glob: Some(ref glob),
                ref err,
            } => {
                write!(f, "error parsing glob '{}': {}", glob, err)
            }
            Error::UnrecognizedFileType(ref ty) => {
                write!(f, "unrecognized file type: {}", ty)
            }
            Error::InvalidDefinition => write!(
                f,
                "invalid definition (format is type:glob, e.g., \
                           html:*.html)"
            ),
        }
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does fmt() do?
fmt() is a function in the tailwindcss codebase, defined in crates/ignore/src/lib.rs.
Where is fmt() defined?
fmt() is defined in crates/ignore/src/lib.rs at line 333.
What does fmt() call?
fmt() calls 1 function(s): map.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free