clone() — tailwindcss Function Reference
Architecture documentation for the clone() function in lib.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD b42144cf_c4a9_cb3a_980c_3223641c9f58["clone()"] 45d3637d_63b6_933b_072c_47e0aeaa39a0["lib.rs"] b42144cf_c4a9_cb3a_980c_3223641c9f58 -->|defined in| 45d3637d_63b6_933b_072c_47e0aeaa39a0 style b42144cf_c4a9_cb3a_980c_3223641c9f58 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/lib.rs lines 120–153
fn clone(&self) -> Error {
match *self {
Error::Partial(ref errs) => Error::Partial(errs.clone()),
Error::WithLineNumber { line, ref err } => Error::WithLineNumber {
line,
err: err.clone(),
},
Error::WithPath { ref path, ref err } => Error::WithPath {
path: path.clone(),
err: err.clone(),
},
Error::WithDepth { depth, ref err } => Error::WithDepth {
depth,
err: err.clone(),
},
Error::Loop {
ref ancestor,
ref child,
} => Error::Loop {
ancestor: ancestor.clone(),
child: child.clone(),
},
Error::Io(ref err) => match err.raw_os_error() {
Some(e) => Error::Io(std::io::Error::from_raw_os_error(e)),
None => Error::Io(std::io::Error::new(err.kind(), err.to_string())),
},
Error::Glob { ref glob, ref err } => Error::Glob {
glob: glob.clone(),
err: err.clone(),
},
Error::UnrecognizedFileType(ref err) => Error::UnrecognizedFileType(err.clone()),
Error::InvalidDefinition => Error::InvalidDefinition,
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does clone() do?
clone() is a function in the tailwindcss codebase, defined in crates/ignore/src/lib.rs.
Where is clone() defined?
clone() is defined in crates/ignore/src/lib.rs at line 120.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free