Releases: facebookincubator/gazebo
Releases · facebookincubator/gazebo
Version 0.4.0
- Breaking change:
cloned
andduped
on theprelude
Vec
extensions now operate on references rather than data. For the previous uses you should use the standardto_vec()
method instead. - Add the
AsARef
trait, similar toAsRef
but working over both data andRefCell
. - Extend
Coerce
with more instances, support for?Sized
types and a derivation. - Add
try_map
to theprelude
Option
extensions. - Add
dupe_from_slice
to theprelude
Vec
extensions. - Add
TEq::teq_mut
to convert equal mutable pointers. - Produce better error messages when derivations are used in inappropriate settings.
Version 0.3.3
- Add
Coerce
andCoerceKey
to implement zero-cost conversions between types with identical representations.
Version 0.3.2
- Rename
OptionExt
toOptionRefExt
(not a breaking change provided youuse gazebo::prelude::*
, as per the recommendation). - Add
into_try_map
forOption
.
Version 0.3.1
- Optimise the internal implementation of
ARef
. - Add
ARef::filter_map
, mirroringRef::filter_map
. - Add
transmute_unchecked
for transmute with less static checks. - Add
Hashed
to precompute the hash of a type.
Version 0.3.0
- Breaking change: Make the internal structure of
ARef
abstract, introducingARef::new_ptr
andARef::new_ref
to create anARef
.
Version 0.2.2
- Add
Dupe
for mostCopy
types fromstd
, namely&X
,*const X
,*mut X
,Bound
,Pin
,NonNull
,Poll
,TypeId
,PhantomPinned
,Ipv4Addr
,Ipv6Addr
,SocketAddrV4
,SocketAddrV6
,ThreadId
,SystemTime
.
Version 0.2.1
- Add
Dupe
forNonZero
types. - Add an implementation of
AnyLifetime
forstr
. - Implement traits on
ARef
, specificallyDisplay
,Eq
,Ord
,PartialEq
,PartialOrd
.
Version 0.2.0
- Breaking change: Rename
clones
tocloned
,dupes
toduped
andowns
toowned
- to follow Rust conventions better. - Add
Dupe
forfn()
(up to arity 12). - Add macros for chained comparison, see
eq_chain!
andcmp_chain!
. - Add the
OptionExt
extension trait, containingduped
. - Add the
IterExt
extension trait, containingtry_all
,try_any
,try_eq_by
,try_cmp_by
andduped
. - Introduce the
UnpackVariants
trait, to unpack the values inside anenum
. - Allow
any_lifetime!(&T)
to work, and add an instance for&str
. - Deprecate
trim_start_match_opt
andtrim_end_match_opt
. Use the functionsstrip_prefix
andstrip_suffix
introduced in Rust 1.45.0.
Version 0.1.0
- Initial version.