#vector #drop #destructor #maybeuninit #wrapper-type #unused #wrapper #releases #type #manuallydrop

deprecated nodrop

A wrapper type to inhibit drop (destructor). ***Deprecated: Use ManuallyDrop or MaybeUninit instead!***

15 releases

Uses old Rust 2015

0.1.14 Oct 9, 2019
0.1.13 Nov 12, 2018
0.1.12 Oct 27, 2017
0.1.9 Feb 23, 2017
0.1.4 Jun 14, 2015
Download history 94193/week @ 2022-10-10 87409/week @ 2022-10-17 76984/week @ 2022-10-24 74620/week @ 2022-10-31 79077/week @ 2022-11-07 72923/week @ 2022-11-14 64282/week @ 2022-11-21 66429/week @ 2022-11-28 65182/week @ 2022-12-05 64205/week @ 2022-12-12 59457/week @ 2022-12-19 44611/week @ 2022-12-26 58095/week @ 2023-01-02 65126/week @ 2023-01-09 63005/week @ 2023-01-16 60230/week @ 2023-01-23

251,970 downloads per month
Used in 1,812 crates (16 directly)

MIT/Apache

10KB
150 lines

nodrop

Recent Changes (nodrop)

  • 0.1.14

    • Mark nodrop deprecated

      With the release of arrayvec 0.5, nodrop is unused.

      With the release of Rust 1.36 and MaybeUninit, nodrop has no purpose (but for older Rust releases).

  • 0.1.13

    • Update to include license files in the crate by @ignatenkobrain
  • 0.1.12

    • Remove dependency on crate odds.
  • 0.1.11

    • Remove erronous assertion in test (#77)
  • 0.1.10

    • Update for stable needs_drop (Rust 1.21, was nightly only)
  • 0.1.9

    • Fix issue in recent nightly where repr(u8) did not work. Use a better way to get rid of the enum layout optimization.
  • 0.1.8

    • Add crate feature use_union that uses untagged unions to implement NoDrop. Finally we have an implementation without hacks, without a runtime flag, and without an actual Drop impl (which was needed to suppress drop). The crate feature requires nightly and is unstable.
  • 0.1.7

    • Remove crate feature no_drop_flag, because it doesn't compile on nightly anymore. Drop flags are gone anyway!
  • 0.1.6

    • Add feature std, which you can opt out of to use no_std.
  • 0.1.5

    • Added crate feature use_needs_drop which is a nightly-only optimization, which skips overwriting if the inner value does not need drop.

License

Dual-licensed to be compatible with the Rust project.

Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.

Dependencies