You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Binary number types provide Hex, Octal, Binary formatting
Only applicable to bitflags, and the bitflags crate handles this for us.
Macros(crate presents well-behaved macros) (N/A)
Input syntax is evocative of the output
Macros compose well with attributes
Item macros work anywhere that items are allowed
Item macros support visibility specifiers
Type fragments are flexible
Documentation(crate is abundantly documented)
Crate level docs are thorough and include examples
All items have a rustdoc example
I would say N/A. The vast majority of content is either a simple data struct or a simple function call that takes no parameters and returns a Result with a simple value. The more complicated items / usecases have examples (or should).
Examples use ?, not try!, not unwrap
Function docs include error conditions in "Errors" section
As much as NVIDIA's documentation allows.
Function docs include panic conditions in "Panics" section <-- pick up evaluating here
Prose contains hyperlinks to relevant things
Cargo.toml publishes CI badges for tier 1 platforms
Checklist and links copied from https://github.com./brson/rust-api-guidelines:
Rust API guidelines
Crate conformance checklist
as_
,to_
,into_
conventionsiter
,iter_mut
,into_iter
_mut
and_ref
Copy
,Clone
,Eq
,PartialEq
,Ord
,PartialOrd
,Hash
,Debug
,Display
,Default
From
,AsRef
,AsMut
as_inner
andas_mut_inner
methods be replaced (or augmented) with implementations ofAsRef
andAsMut
?FromIterator
andExtend
Serialize
,Deserialize
"serde"
cfg option that enables SerdeSend
andSync
where possibleSend
andSync
()
Hex
,Octal
,Binary
formattingbitflags
crate handles this for us.Result
with a simple value. The more complicated items / usecases have examples (or should).?
, nottry!
, notunwrap
readme, keywords, categories
Deref
andDerefMut
Deref
andDerefMut
never failbool
orOption
bitflags
, not enumsDebug
Debug
representation is never emptyThe text was updated successfully, but these errors were encountered: