fmt() — tailwindcss Function Reference
Architecture documentation for the fmt() function in lib.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD ec81a92b_f5e3_b15f_d880_8289e73d5c8a["fmt()"] 6276f537_5bf1_3387_5dd4_2953bf0a4161["map()"] ec81a92b_f5e3_b15f_d880_8289e73d5c8a -->|calls| 6276f537_5bf1_3387_5dd4_2953bf0a4161 style ec81a92b_f5e3_b15f_d880_8289e73d5c8a 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