Skip to content

Releases: facebookincubator/gazebo

Version 0.4.0

15 Jul 19:02
Compare
Choose a tag to compare
  • Breaking change: cloned and duped on the prelude Vec extensions now operate on references rather than data. For the previous uses you should use the standard to_vec() method instead.
  • Add the AsARef trait, similar to AsRef but working over both data and RefCell.
  • Extend Coerce with more instances, support for ?Sized types and a derivation.
  • Add try_map to the prelude Option extensions.
  • Add dupe_from_slice to the prelude 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

06 Jul 18:43
Compare
Choose a tag to compare
  • Add Coerce and CoerceKey to implement zero-cost conversions between types with identical representations.

Version 0.3.2

21 Jun 08:08
Compare
Choose a tag to compare
  • Rename OptionExt to OptionRefExt (not a breaking change provided you use gazebo::prelude::*, as per the recommendation).
  • Add into_try_map for Option.

Version 0.3.1

11 Jun 12:52
Compare
Choose a tag to compare
  • Optimise the internal implementation of ARef.
  • Add ARef::filter_map, mirroring Ref::filter_map.
  • Add transmute_unchecked for transmute with less static checks.
  • Add Hashed to precompute the hash of a type.

Version 0.3.0

21 May 12:46
Compare
Choose a tag to compare
  • Breaking change: Make the internal structure of ARef abstract, introducing ARef::new_ptr and ARef::new_ref to create an ARef.

Version 0.2.2

10 May 10:53
Compare
Choose a tag to compare
  • Add Dupe for most Copy types from std, namely &X, *const X, *mut X, Bound, Pin, NonNull, Poll, TypeId, PhantomPinned, Ipv4Addr, Ipv6Addr, SocketAddrV4, SocketAddrV6, ThreadId, SystemTime.

Version 0.2.1

10 May 08:33
Compare
Choose a tag to compare
  • Add Dupe for NonZero types.
  • Add an implementation of AnyLifetime for str.
  • Implement traits on ARef, specifically Display, Eq, Ord, PartialEq, PartialOrd.

Version 0.2.0

22 Mar 15:09
Compare
Choose a tag to compare
  • Breaking change: Rename clones to cloned, dupes to duped and owns to owned - to follow Rust conventions better.
  • Add Dupe for fn() (up to arity 12).
  • Add macros for chained comparison, see eq_chain! and cmp_chain!.
  • Add the OptionExt extension trait, containing duped.
  • Add the IterExt extension trait, containing try_all, try_any, try_eq_by, try_cmp_by and duped.
  • Introduce the UnpackVariants trait, to unpack the values inside an enum.
  • Allow any_lifetime!(&T) to work, and add an instance for &str.
  • Deprecate trim_start_match_opt and trim_end_match_opt. Use the functions strip_prefix and strip_suffix introduced in Rust 1.45.0.

Version 0.1.0

22 Mar 13:38
Compare
Choose a tag to compare
  • Initial version.