fmt() — tailwindcss Function Reference
Architecture documentation for the fmt() function in lib.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 5c31b17a_5cd9_8d9d_c501_b5b9826d6a12["fmt()"] 33b6096b_90c0_5980_c78f_82f5d36b55b3["map()"] 5c31b17a_5cd9_8d9d_c501_b5b9826d6a12 -->|calls| 33b6096b_90c0_5980_c78f_82f5d36b55b3 style 5c31b17a_5cd9_8d9d_c501_b5b9826d6a12 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
Source
Frequently Asked Questions
What does fmt() do?
fmt() is a function in the tailwindcss codebase.
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