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
  e004c9c9_cbb2_9858_ecdd_34dfa1d46d4a["fmt()"]
  d51c8934_ce3d_f9d0_a14e_c9711e79f4e3["lib.rs"]
  e004c9c9_cbb2_9858_ecdd_34dfa1d46d4a -->|defined in| d51c8934_ce3d_f9d0_a14e_c9711e79f4e3
  e81b1958_c796_00f9_8176_3fcad47cc256["map()"]
  e004c9c9_cbb2_9858_ecdd_34dfa1d46d4a -->|calls| e81b1958_c796_00f9_8176_3fcad47cc256
  style e004c9c9_cbb2_9858_ecdd_34dfa1d46d4a 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