-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Follow the Rust API Guidelines - Checklist #25
Comments
Also, investigate using |
I think we want to keep breaking C-SMART-PTR for |
|
We should also check all traits for whether they provide correct blanket impls ( |
I will consider most of this guideline as not really applicable to Naming decisions in |
I consider this basically done now, remaining parts are tracked in the linked issues |
Rust API Guidelines Checklist
as_
,to_
,into_
conventions (C-CONV)iter
,iter_mut
,into_iter
(C-ITER)Copy
,Clone
,Eq
,PartialEq
,Ord
,PartialOrd
,Hash
,Debug
,Display
,Default
From
,AsRef
,AsMut
(C-CONV-TRAITS)FromIterator
andExtend
(C-COLLECT)Serialize
,Deserialize
(C-SERDE)Send
andSync
where possible (C-SEND-SYNC)Hex
,Octal
,Binary
formatting (C-NUM-FMT)Bool
, just as we don't implementPartialEq
for thatR: Read
andW: Write
by value (C-RW-VALUE)?
, nottry!
, notunwrap
(C-QUESTION-MARK)keywords, categories
Deref
andDerefMut
(C-DEREF)objc2::runtime
, and that would mostly be interesting after it's easier to use&CStr
, e.g. after Tracking Issue forc"…"
string literals rust-lang/rust#105723 (tracked in The plan for Swift feature-parity #429)bool
orOption
(C-CUSTOM-TYPE)bitflags
, not enums (C-BITFLAG)Debug
(C-DEBUG)Debug
representation is never empty (C-DEBUG-NONEMPTY)The text was updated successfully, but these errors were encountered: