Trait caffe2_imports::Drop

1.0.0 · source ·
pub trait Drop {
    // Required method
    fn drop(&mut self);
}
Expand description

Custom code within the destructor.

When a value is no longer needed, Rust will run a “destructor” on that value. The most common way that a value is no longer needed is when it goes out of scope. Destructors may still run in other circumstances, but we’re going to focus on scope for the examples here. To learn about some of those other cases, please see the reference section on destructors.

This destructor consists of two components:

  • A call to Drop::drop for that value, if this special Drop trait is implemented for its type.
  • The automatically generated “drop glue” which recursively calls the destructors of all the fields of this value.

As Rust automatically calls the destructors of all contained fields, you don’t have to implement Drop in most cases. But there are some cases where it is useful, for example for types which directly manage a resource. That resource may be memory, it may be a file descriptor, it may be a network socket. Once a value of that type is no longer going to be used, it should “clean up” its resource by freeing the memory or closing the file or socket. This is the job of a destructor, and therefore the job of Drop::drop.

Examples

To see destructors in action, let’s take a look at the following program:

struct HasDrop;

impl Drop for HasDrop {
    fn drop(&mut self) {
        println!("Dropping HasDrop!");
    }
}

struct HasTwoDrops {
    one: HasDrop,
    two: HasDrop,
}

impl Drop for HasTwoDrops {
    fn drop(&mut self) {
        println!("Dropping HasTwoDrops!");
    }
}

fn main() {
    let _x = HasTwoDrops { one: HasDrop, two: HasDrop };
    println!("Running!");
}

Rust will first call Drop::drop for _x and then for both _x.one and _x.two, meaning that running this will print

Running!
Dropping HasTwoDrops!
Dropping HasDrop!
Dropping HasDrop!

Even if we remove the implementation of Drop for HasTwoDrop, the destructors of its fields are still called. This would result in

Running!
Dropping HasDrop!
Dropping HasDrop!

You cannot call Drop::drop yourself

Because Drop::drop is used to clean up a value, it may be dangerous to use this value after the method has been called. As Drop::drop does not take ownership of its input, Rust prevents misuse by not allowing you to call Drop::drop directly.

In other words, if you tried to explicitly call Drop::drop in the above example, you’d get a compiler error.

If you’d like to explicitly call the destructor of a value, mem::drop can be used instead.

Drop order

Which of our two HasDrop drops first, though? For structs, it’s the same order that they’re declared: first one, then two. If you’d like to try this yourself, you can modify HasDrop above to contain some data, like an integer, and then use it in the println! inside of Drop. This behavior is guaranteed by the language.

Unlike for structs, local variables are dropped in reverse order:

struct Foo;

impl Drop for Foo {
    fn drop(&mut self) {
        println!("Dropping Foo!")
    }
}

struct Bar;

impl Drop for Bar {
    fn drop(&mut self) {
        println!("Dropping Bar!")
    }
}

fn main() {
    let _foo = Foo;
    let _bar = Bar;
}

This will print

Dropping Bar!
Dropping Foo!

Please see the reference for the full rules.

Copy and Drop are exclusive

You cannot implement both Copy and Drop on the same type. Types that are Copy get implicitly duplicated by the compiler, making it very hard to predict when, and how often destructors will be executed. As such, these types cannot have destructors.

Required Methods§

source

fn drop(&mut self)

Executes the destructor for this type.

This method is called implicitly when the value goes out of scope, and cannot be called explicitly (this is compiler error E0040). However, the mem::drop function in the prelude can be used to call the argument’s Drop implementation.

When this method has been called, self has not yet been deallocated. That only happens after the method is over. If this wasn’t the case, self would be a dangling reference.

Panics

Given that a panic! will call drop as it unwinds, any panic! in a drop implementation will likely abort.

Note that even if this panics, the value is considered to be dropped; you must not cause drop to be called again. This is normally automatically handled by the compiler, but when using unsafe code, can sometimes occur unintentionally, particularly when using ptr::drop_in_place.

Implementors§

1.36.0 · source§

impl Drop for Waker

source§

impl Drop for Algorithm

source§

impl Drop for Arrays

source§

impl Drop for AsyncArray

source§

impl Drop for AsyncPromise

source§

impl Drop for Buffer

source§

impl Drop for BufferPool

source§

impl Drop for CommandLineParser

source§

impl Drop for Context

source§

impl Drop for Context_UserContext

source§

impl Drop for Detail_CheckContext

source§

impl Drop for Device

source§

impl Drop for DeviceInfo

source§

impl Drop for Event

source§

impl Drop for Exception

source§

impl Drop for FileNode

source§

impl Drop for FileNodeIterator

source§

impl Drop for FileStorage

source§

impl Drop for GpuData

source§

impl Drop for GpuMat

source§

impl Drop for GpuMatND

source§

impl Drop for Hamming

source§

impl Drop for HostMem

source§

impl Drop for Image2D

source§

impl Drop for Kernel

source§

impl Drop for KernelArg

source§

impl Drop for KeyPoint

source§

impl Drop for LDA

source§

impl Drop for LogTag

source§

impl Drop for Mat

source§

impl Drop for MatConstIterator

source§

impl Drop for MatExpr

source§

impl Drop for MatSize

source§

impl Drop for MatStep

source§

impl Drop for Matx_AddOp

source§

impl Drop for Matx_DivOp

source§

impl Drop for Matx_MatMulOp

source§

impl Drop for Matx_MulOp

source§

impl Drop for Matx_ScaleOp

source§

impl Drop for Matx_SubOp

source§

impl Drop for Matx_TOp

source§

impl Drop for NodeData

source§

impl Drop for OpenCLExecutionContext

source§

impl Drop for OriginalClassName

source§

impl Drop for PCA

source§

impl Drop for Platform

source§

impl Drop for PlatformInfo

source§

impl Drop for Program

source§

impl Drop for ProgramSource

source§

impl Drop for Queue

source§

impl Drop for RNG

source§

impl Drop for RNG_MT19937

source§

impl Drop for Range

source§

impl Drop for RotatedRect

source§

impl Drop for SVD

source§

impl Drop for SparseMat

source§

impl Drop for SparseMatConstIterator

source§

impl Drop for SparseMatIterator

source§

impl Drop for SparseMat_Hdr

source§

impl Drop for SparseMat_Node

source§

impl Drop for Stream

source§

impl Drop for TargetArchs

source§

impl Drop for Texture2D

source§

impl Drop for TickMeter

source§

impl Drop for Timer

source§

impl Drop for UMat

source§

impl Drop for UMatData

source§

impl Drop for WriteStructContext

source§

impl Drop for _InputArray

source§

impl Drop for _InputOutputArray

source§

impl Drop for _OutputArray

1.13.0 · source§

impl Drop for CString

1.6.0 · source§

impl Drop for alloc::string::Drain<'_>

1.63.0 · source§

impl Drop for OwnedFd

source§

impl Drop for ConvolutionDescriptor

source§

impl Drop for Cudnn

source§

impl Drop for FilterDescriptor

source§

impl Drop for NormalizationDescriptor

source§

impl Drop for PoolingDescriptor

source§

impl Drop for TensorDescriptor

source§

impl Drop for EstimateParameters

source§

impl Drop for BarcodeDetector

source§

impl Drop for BackgroundSubtractorLSBPDesc

source§

impl Drop for SyntheticSequenceGenerator

source§

impl Drop for RetinaParameters

source§

impl Drop for CustomPattern

source§

impl Drop for MultiCameraCalibration

source§

impl Drop for MultiCameraCalibration_edge

source§

impl Drop for MultiCameraCalibration_vertex

source§

impl Drop for RandomPatternCornerFinder

source§

impl Drop for RandomPatternGenerator

source§

impl Drop for CallMetaData

source§

impl Drop for AbsLayer

source§

impl Drop for AccumLayer

source§

impl Drop for AcosLayer

source§

impl Drop for AcoshLayer

source§

impl Drop for ActivationLayer

source§

impl Drop for ActivationLayerInt8

source§

impl Drop for ArgLayer

source§

impl Drop for AsinLayer

source§

impl Drop for AsinhLayer

source§

impl Drop for AtanLayer

source§

impl Drop for AtanhLayer

source§

impl Drop for BNLLLayer

source§

impl Drop for BackendNode

source§

impl Drop for BaseConvolutionLayer

source§

impl Drop for BatchNormLayer

source§

impl Drop for BatchNormLayerInt8

source§

impl Drop for BlankLayer

source§

impl Drop for CeilLayer

source§

impl Drop for CeluLayer

source§

impl Drop for ChannelsPReLULayer

source§

impl Drop for ClassificationModel

source§

impl Drop for CompareLayer

source§

impl Drop for ConcatLayer

source§

impl Drop for ConstLayer

source§

impl Drop for ConvolutionLayer

source§

impl Drop for ConvolutionLayerInt8

source§

impl Drop for CorrelationLayer

source§

impl Drop for CosLayer

source§

impl Drop for CoshLayer

source§

impl Drop for CropAndResizeLayer

source§

impl Drop for CropLayer

source§

impl Drop for CumSumLayer

source§

impl Drop for DataAugmentationLayer

source§

impl Drop for DeconvolutionLayer

source§

impl Drop for DequantizeLayer

source§

impl Drop for DetectionModel

source§

impl Drop for DetectionOutputLayer

source§

impl Drop for Dict

source§

impl Drop for DictValue

source§

impl Drop for ELULayer

source§

impl Drop for EltwiseLayer

source§

impl Drop for EltwiseLayerInt8

source§

impl Drop for ErfLayer

source§

impl Drop for ExpLayer

source§

impl Drop for FlattenLayer

source§

impl Drop for FloorLayer

source§

impl Drop for FlowWarpLayer

source§

impl Drop for GRULayer

source§

impl Drop for GatherLayer

source§

impl Drop for HardSigmoidLayer

source§

impl Drop for HardSwishLayer

source§

impl Drop for InnerProductLayer

source§

impl Drop for InnerProductLayerInt8

source§

impl Drop for InterpLayer

source§

impl Drop for KeypointsModel

source§

impl Drop for LRNLayer

source§

impl Drop for Layer

source§

impl Drop for LayerFactory

source§

impl Drop for LayerParams

source§

impl Drop for LogLayer

source§

impl Drop for MVNLayer

source§

impl Drop for MaxUnpoolLayer

source§

impl Drop for MishLayer

source§

impl Drop for Model

source§

impl Drop for NaryEltwiseLayer

source§

impl Drop for Net

source§

impl Drop for NormalizeBBoxLayer

source§

impl Drop for NotLayer

source§

impl Drop for PaddingLayer

source§

impl Drop for PermuteLayer

source§

impl Drop for PoolingLayer

source§

impl Drop for PoolingLayerInt8

source§

impl Drop for PowerLayer

source§

impl Drop for PriorBoxLayer

source§

impl Drop for ProposalLayer

source§

impl Drop for QuantizeLayer

source§

impl Drop for ReLU6Layer

source§

impl Drop for ReLULayer

source§

impl Drop for ReciprocalLayer

source§

impl Drop for ReduceLayer

source§

impl Drop for ReduceLayerInt8

source§

impl Drop for RegionLayer

source§

impl Drop for ReorgLayer

source§

impl Drop for RequantizeLayer

source§

impl Drop for ReshapeLayer

source§

impl Drop for ResizeLayer

source§

impl Drop for RoundLayer

source§

impl Drop for ScaleLayer

source§

impl Drop for ScaleLayerInt8

source§

impl Drop for ScatterLayer

source§

impl Drop for ScatterNDLayer

source§

impl Drop for SegmentationModel

source§

impl Drop for SeluLayer

source§

impl Drop for ShiftLayer

source§

impl Drop for ShiftLayerInt8

source§

impl Drop for ShrinkLayer

source§

impl Drop for ShuffleChannelLayer

source§

impl Drop for SigmoidLayer

source§

impl Drop for SignLayer

source§

impl Drop for SinLayer

source§

impl Drop for SinhLayer

source§

impl Drop for SliceLayer

source§

impl Drop for SoftmaxLayer

source§

impl Drop for SoftmaxLayerInt8

source§

impl Drop for SoftplusLayer

source§

impl Drop for SoftsignLayer

source§

impl Drop for SplitLayer

source§

impl Drop for SqrtLayer

source§

impl Drop for SwishLayer

source§

impl Drop for TanHLayer

source§

impl Drop for TanLayer

source§

impl Drop for TextDetectionModel

source§

impl Drop for TextDetectionModel_DB

source§

impl Drop for TextDetectionModel_EAST

source§

impl Drop for TextRecognitionModel

source§

impl Drop for ThresholdedReluLayer

source§

impl Drop for TileLayer

source§

impl Drop for _Range

source§

impl Drop for DnnSuperResImpl

source§

impl Drop for DPMDetector_ObjectDetection

source§

impl Drop for CParams

source§

impl Drop for FacemarkAAM_Config

source§

impl Drop for FacemarkAAM_Data

source§

impl Drop for FacemarkAAM_Model

source§

impl Drop for FacemarkAAM_Model_Texture

source§

impl Drop for FacemarkAAM_Params

source§

impl Drop for FacemarkKazemi_Params

source§

impl Drop for FacemarkLBF_Params

source§

impl Drop for StandardCollector

source§

impl Drop for BFMatcher

source§

impl Drop for BOWImgDescriptorExtractor

source§

impl Drop for BOWKMeansTrainer

source§

impl Drop for Feature2D

source§

impl Drop for FlannBasedMatcher

source§

impl Drop for KeyPointsFilter

source§

impl Drop for AutotunedIndexParams

source§

impl Drop for CompositeIndexParams

source§

impl Drop for HierarchicalClusteringIndexParams

source§

impl Drop for Index

source§

impl Drop for IndexParams

source§

impl Drop for KDTreeIndexParams

source§

impl Drop for KMeansIndexParams

source§

impl Drop for LinearIndexParams

source§

impl Drop for LshIndexParams

source§

impl Drop for SavedIndexParams

source§

impl Drop for SearchParams

source§

impl Drop for Data

source§

impl Drop for ExtractArgsCallback

source§

impl Drop for ExtractMetaCallback

source§

impl Drop for GArg

source§

impl Drop for GArrayDesc

source§

impl Drop for GArrayU

source§

impl Drop for GBackend

source§

impl Drop for GCall

source§

impl Drop for GCompileArg

source§

impl Drop for GCompiled

source§

impl Drop for GComputation

source§

impl Drop for GFrame

source§

impl Drop for GFrameDesc

source§

impl Drop for GKernel

source§

impl Drop for GKernelImpl

source§

impl Drop for GKernelPackage

source§

impl Drop for GMat

source§

impl Drop for GMatDesc

source§

impl Drop for GMatP

source§

impl Drop for GOpaqueDesc

source§

impl Drop for GOpaqueU

source§

impl Drop for GRunArg

source§

impl Drop for GScalar

source§

impl Drop for GScalarDesc

source§

impl Drop for GStreamingCompiled

source§

impl Drop for GTransform

source§

impl Drop for GTypeInfo

source§

impl Drop for Image

source§

impl Drop for MediaFrame

source§

impl Drop for MediaFrame_View

source§

impl Drop for Poly

source§

impl Drop for RMat

source§

impl Drop for RMat_View

source§

impl Drop for Scalar

source§

impl Drop for Text

source§

impl Drop for any

source§

impl Drop for use_only

source§

impl Drop for QtFont

source§

impl Drop for AverageHash

source§

impl Drop for BlockMeanHash

source§

impl Drop for ColorMomentHash

source§

impl Drop for ImgHashBase

source§

impl Drop for MarrHildrethHash

source§

impl Drop for PHash

source§

impl Drop for RadialVarianceHash

source§

impl Drop for ImageCollection

source§

impl Drop for ImageCollection_iterator

source§

impl Drop for IntelligentScissorsMB

source§

impl Drop for LineIterator

source§

impl Drop for Subdiv2D

source§

impl Drop for BinaryDescriptor

source§

impl Drop for BinaryDescriptorMatcher

source§

impl Drop for BinaryDescriptor_Params

source§

impl Drop for LSDDetector

source§

impl Drop for ColorCorrectionModel

source§

impl Drop for MCC_DetectorParameters

source§

impl Drop for DTrees_Node

source§

impl Drop for DTrees_Split

source§

impl Drop for ParamGrid

source§

impl Drop for ArucoDetector

source§

impl Drop for Board

source§

impl Drop for CascadeClassifier

source§

impl Drop for CharucoBoard

source§

impl Drop for CharucoDetector

source§

impl Drop for CharucoParameters

source§

impl Drop for DetectionBasedTracker

source§

impl Drop for DetectionBasedTracker_ExtObject

source§

impl Drop for DetectionBasedTracker_Parameters

source§

impl Drop for DetectionROI

source§

impl Drop for DetectorParameters

source§

impl Drop for Dictionary

source§

impl Drop for GridBoard

source§

impl Drop for HOGDescriptor

source§

impl Drop for QRCodeDetector

source§

impl Drop for SimilarRects

source§

impl Drop for GPCDetails

source§

impl Drop for GPCPatchDescriptor

source§

impl Drop for GPCPatchSample

source§

impl Drop for GPCTrainingSamples

source§

impl Drop for GPCTree

source§

impl Drop for OpticalFlowPCAFlow

source§

impl Drop for PCAPrior

source§

impl Drop for RLOFOpticalFlowParameter

source§

impl Drop for QualityBRISQUE

source§

impl Drop for QualityGMSD

source§

impl Drop for QualityMSE

source§

impl Drop for QualityPSNR

source§

impl Drop for QualitySSIM

source§

impl Drop for ColoredKinfu_Params

source§

impl Drop for DepthCleaner

source§

impl Drop for FastICPOdometry

source§

impl Drop for ICPOdometry

source§

impl Drop for Kinfu_Params

source§

impl Drop for Kinfu_VolumeParams

source§

impl Drop for Linemod_ColorGradient

source§

impl Drop for Linemod_DepthNormal

source§

impl Drop for Linemod_Detector

source§

impl Drop for Linemod_Match

source§

impl Drop for Linemod_Template

source§

impl Drop for OdometryFrame

source§

impl Drop for Params

source§

impl Drop for RgbdFrame

source§

impl Drop for RgbdICPOdometry

source§

impl Drop for RgbdNormals

source§

impl Drop for RgbdOdometry

source§

impl Drop for RgbdPlane

source§

impl Drop for MotionSaliencyBinWangApr2014

source§

impl Drop for ObjectnessBING

source§

impl Drop for StaticSaliencyFineGrained

source§

impl Drop for StaticSaliencySpectralResidual

source§

impl Drop for AffineWarper

source§

impl Drop for CompressedRectilinearPortraitWarper

source§

impl Drop for CompressedRectilinearWarper

source§

impl Drop for CylindricalWarper

source§

impl Drop for CylindricalWarperGpu

source§

impl Drop for Detail_AffineBasedEstimator

source§

impl Drop for Detail_AffineBestOf2NearestMatcher

source§

impl Drop for Detail_AffineWarper

source§

impl Drop for Detail_BestOf2NearestMatcher

source§

impl Drop for Detail_BestOf2NearestRangeMatcher

source§

impl Drop for Detail_Blender

source§

impl Drop for Detail_BlocksChannelsCompensator

source§

impl Drop for Detail_BlocksGainCompensator

source§

impl Drop for Detail_BundleAdjusterAffine

source§

impl Drop for Detail_BundleAdjusterAffinePartial

source§

impl Drop for Detail_BundleAdjusterRay

source§

impl Drop for Detail_BundleAdjusterReproj

source§

impl Drop for Detail_CameraParams

source§

impl Drop for Detail_ChannelsCompensator

source§

impl Drop for Detail_CompressedRectilinearPortraitProjector

source§

impl Drop for Detail_CompressedRectilinearPortraitWarper

source§

impl Drop for Detail_CompressedRectilinearProjector

source§

impl Drop for Detail_CompressedRectilinearWarper

source§

impl Drop for Detail_CylindricalPortraitProjector

source§

impl Drop for Detail_CylindricalPortraitWarper

source§

impl Drop for Detail_CylindricalProjector

source§

impl Drop for Detail_CylindricalWarper

source§

impl Drop for Detail_CylindricalWarperGpu

source§

impl Drop for Detail_DisjointSets

source§

impl Drop for Detail_DpSeamFinder

source§

impl Drop for Detail_FeatherBlender

source§

impl Drop for Detail_FisheyeProjector

source§

impl Drop for Detail_FisheyeWarper

source§

impl Drop for Detail_GainCompensator

source§

impl Drop for Detail_Graph

source§

impl Drop for Detail_GraphCutSeamFinder

source§

impl Drop for Detail_GraphCutSeamFinderBase

source§

impl Drop for Detail_GraphCutSeamFinderGpu

source§

impl Drop for Detail_GraphEdge

source§

impl Drop for Detail_HomographyBasedEstimator

source§

impl Drop for Detail_ImageFeatures

source§

impl Drop for Detail_MatchesInfo

source§

impl Drop for Detail_MercatorProjector

source§

impl Drop for Detail_MercatorWarper

source§

impl Drop for Detail_MultiBandBlender

source§

impl Drop for Detail_NoBundleAdjuster

source§

impl Drop for Detail_NoExposureCompensator

source§

impl Drop for Detail_NoSeamFinder

source§

impl Drop for Detail_PaniniPortraitProjector

source§

impl Drop for Detail_PaniniPortraitWarper

source§

impl Drop for Detail_PaniniProjector

source§

impl Drop for Detail_PaniniWarper

source§

impl Drop for Detail_PlanePortraitProjector

source§

impl Drop for Detail_PlanePortraitWarper

source§

impl Drop for Detail_PlaneProjector

source§

impl Drop for Detail_PlaneWarper

source§

impl Drop for Detail_PlaneWarperGpu

source§

impl Drop for Detail_ProjectorBase

source§

impl Drop for Detail_SphericalPortraitProjector

source§

impl Drop for Detail_SphericalPortraitWarper

source§

impl Drop for Detail_SphericalProjector

source§

impl Drop for Detail_SphericalWarper

source§

impl Drop for Detail_SphericalWarperGpu

source§

impl Drop for Detail_StereographicProjector

source§

impl Drop for Detail_StereographicWarper

source§

impl Drop for Detail_TransverseMercatorProjector

source§

impl Drop for Detail_TransverseMercatorWarper

source§

impl Drop for Detail_VoronoiSeamFinder

source§

impl Drop for FisheyeWarper

source§

impl Drop for MercatorWarper

source§

impl Drop for PaniniPortraitWarper

source§

impl Drop for PaniniWarper

source§

impl Drop for PlaneWarper

source§

impl Drop for PlaneWarperGpu

source§

impl Drop for PyRotationWarper

source§

impl Drop for SphericalWarper

source§

impl Drop for SphericalWarperGpu

source§

impl Drop for StereographicWarper

source§

impl Drop for Stitcher

source§

impl Drop for TransverseMercatorWarper

source§

impl Drop for GrayCodePattern_Params

source§

impl Drop for SinusoidalPattern_Params

source§

impl Drop for ICP

source§

impl Drop for PPF3DDetector

source§

impl Drop for Pose3D

source§

impl Drop for PoseCluster3D

source§

impl Drop for ERStat

source§

impl Drop for OCRBeamSearchDecoder

source§

impl Drop for OCRBeamSearchDecoder_ClassifierCallback

source§

impl Drop for OCRHMMDecoder

source§

impl Drop for OCRHMMDecoder_ClassifierCallback

source§

impl Drop for TrackerCSRT_Params

source§

impl Drop for KalmanFilter

source§

impl Drop for TrackerDaSiamRPN_Params

source§

impl Drop for TrackerGOTURN_Params

source§

impl Drop for TrackerNano_Params

source§

impl Drop for VideoCapture

source§

impl Drop for VideoWriter

source§

impl Drop for ColorAverageInpainter

source§

impl Drop for ColorInpainter

source§

impl Drop for ConsistentMosaicInpainter

source§

impl Drop for DensePyrLkOptFlowEstimatorGpu

source§

impl Drop for FastMarchingMethod

source§

impl Drop for FromFileMotionReader

source§

impl Drop for GaussianMotionFilter

source§

impl Drop for InpaintingPipeline

source§

impl Drop for KeypointBasedMotionEstimator

source§

impl Drop for KeypointBasedMotionEstimatorGpu

source§

impl Drop for LogToStdout

source§

impl Drop for LpMotionStabilizer

source§

impl Drop for MaskFrameSource

source§

impl Drop for MoreAccurateMotionWobbleSuppressor

source§

impl Drop for MoreAccurateMotionWobbleSuppressorGpu

source§

impl Drop for MotionEstimatorL1

source§

impl Drop for MotionEstimatorRansacL2

source§

impl Drop for MotionInpainter

source§

impl Drop for MotionStabilizationPipeline

source§

impl Drop for NullDeblurer

source§

impl Drop for NullFrameSource

source§

impl Drop for NullInpainter

source§

impl Drop for NullLog

source§

impl Drop for NullOutlierRejector

source§

impl Drop for NullWobbleSuppressor

source§

impl Drop for OnePassStabilizer

source§

impl Drop for PyrLkOptFlowEstimatorBase

source§

impl Drop for RansacParams

source§

impl Drop for SparsePyrLkOptFlowEstimator

source§

impl Drop for SparsePyrLkOptFlowEstimatorGpu

source§

impl Drop for ToFileMotionWriter

source§

impl Drop for TranslationBasedLocalOutlierRejector

source§

impl Drop for TwoPassStabilizer

source§

impl Drop for VideoFileSource

source§

impl Drop for WeightingDeblurer

source§

impl Drop for Camera

source§

impl Drop for Color

source§

impl Drop for KeyboardEvent

source§

impl Drop for Mesh

source§

impl Drop for MouseEvent

source§

impl Drop for Viz3d

source§

impl Drop for WArrow

source§

impl Drop for WCameraPosition

source§

impl Drop for WCircle

source§

impl Drop for WCloud

source§

impl Drop for WCloudCollection

source§

impl Drop for WCloudNormals

source§

impl Drop for WCone

source§

impl Drop for WCoordinateSystem

source§

impl Drop for WCube

source§

impl Drop for WCylinder

source§

impl Drop for WGrid

source§

impl Drop for WImage3D

source§

impl Drop for WImageOverlay

source§

impl Drop for WLine

source§

impl Drop for WMesh

source§

impl Drop for WPaintedCloud

source§

impl Drop for WPlane

source§

impl Drop for WPolyLine

source§

impl Drop for WSphere

source§

impl Drop for WText3D

source§

impl Drop for WText

source§

impl Drop for WTrajectory

source§

impl Drop for WTrajectoryFrustums

source§

impl Drop for WTrajectorySpheres

source§

impl Drop for WWidgetMerger

source§

impl Drop for Widget2D

source§

impl Drop for Widget3D

source§

impl Drop for Widget

source§

impl Drop for WeChatQRCode

source§

impl Drop for Elliptic_KeyPoint

source§

impl Drop for SURF_CUDA

source§

impl Drop for TEBLID

source§

impl Drop for ContourFitting

source§

impl Drop for GILPool

source§

impl Drop for GILGuard

The Drop implementation for GILGuard will release the GIL.

§

impl Drop for Enter

§

impl Drop for Guard

§

impl Drop for LocalHandle

§

impl Drop for SelectedOperation<'_>

§

impl Drop for ThreadPool

§

impl Drop for WaitGroup

source§

impl<'a> Drop for rayon::string::Drain<'a>

§

impl<'a, R, G, T> Drop for MappedReentrantMutexGuard<'a, R, G, T>where R: RawMutex + 'a, G: GetThreadId + 'a, T: 'a + ?Sized,

§

impl<'a, R, G, T> Drop for ReentrantMutexGuard<'a, R, G, T>where R: RawMutex + 'a, G: GetThreadId + 'a, T: 'a + ?Sized,

§

impl<'a, R, T> Drop for MappedMutexGuard<'a, R, T>where R: RawMutex + 'a, T: 'a + ?Sized,

§

impl<'a, R, T> Drop for MappedRwLockReadGuard<'a, R, T>where R: RawRwLock + 'a, T: 'a + ?Sized,

§

impl<'a, R, T> Drop for MappedRwLockWriteGuard<'a, R, T>where R: RawRwLock + 'a, T: 'a + ?Sized,

§

impl<'a, R, T> Drop for MutexGuard<'a, R, T>where R: RawMutex + 'a, T: 'a + ?Sized,

§

impl<'a, R, T> Drop for RwLockReadGuard<'a, R, T>where R: RawRwLock + 'a, T: 'a + ?Sized,

§

impl<'a, R, T> Drop for RwLockUpgradableReadGuard<'a, R, T>where R: RawRwLockUpgrade + 'a, T: 'a + ?Sized,

§

impl<'a, R, T> Drop for RwLockWriteGuard<'a, R, T>where R: RawRwLock + 'a, T: 'a + ?Sized,

source§

impl<'a, T> Drop for DrainSorted<'a, T>where T: Ord,

source§

impl<'a, T> Drop for rayon::collections::binary_heap::Drain<'a, T>where T: Ord + Send,

source§

impl<'a, T> Drop for rayon::collections::vec_deque::Drain<'a, T>where T: Send,

source§

impl<'a, T> Drop for smallvec::Drain<'a, T>where T: 'a + Array,

source§

impl<'data, T> Drop for rayon::vec::Drain<'data, T>where T: Send,

source§

impl<'f> Drop for VaListImpl<'f>

source§

impl<'p, T> Drop for PyRef<'p, T>where T: PyClass,

source§

impl<'p, T> Drop for PyRefMut<'p, T>where T: PyClass<Frozen = False>,

source§

impl<A> Drop for RBTree<A>where A: Adapter, <A as Adapter>::LinkOps: RBTreeOps,

source§

impl<A> Drop for SinglyLinkedList<A>where A: Adapter, <A as Adapter>::LinkOps: SinglyLinkedListOps,

source§

impl<A> Drop for XorLinkedList<A>where A: Adapter, <A as Adapter>::LinkOps: XorLinkedListOps,

source§

impl<A> Drop for OwnedRepr<A>

source§

impl<A> Drop for smallvec::IntoIter<A>where A: Array,

source§

impl<A> Drop for caffe2_imports::IntrusiveLinkedList<A>where A: Adapter, <A as Adapter>::LinkOps: LinkedListOps,

source§

impl<A> Drop for SmallVec<A>where A: Array,

§

impl<Fut> Drop for FuturesUnordered<Fut>

§

impl<Fut> Drop for Shared<Fut>where Fut: Future,

1.21.0 · source§

impl<I, A> Drop for Splice<'_, I, A>where I: Iterator, A: Allocator,

1.7.0 · source§

impl<K, V, A> Drop for caffe2_imports::btree_map::IntoIter<K, V, A>where A: Allocator + Clone,

1.7.0 · source§

impl<K, V, A> Drop for BTreeMap<K, V, A>where A: Allocator + Clone,

source§

impl<K, V, F, A> Drop for caffe2_imports::btree_map::DrainFilter<'_, K, V, F, A>where A: Allocator + Clone, F: FnMut(&K, &mut V) -> bool,

1.12.0 · source§

impl<T> Drop for PeekMut<'_, T>where T: Ord,

source§

impl<T> Drop for Ptr<T>where Ptr<T>: PtrExtern, T: ?Sized,

source§

impl<T> Drop for Tuple<T>where Tuple<T>: TupleExtern,

source§

impl<T> Drop for Vector<T>where T: VectorElement, Vector<T>: VectorExtern<T>,

source§

impl<T> Drop for ThinBox<T>where T: ?Sized,

1.4.0 · source§

impl<T> Drop for alloc::rc::Weak<T>where T: ?Sized,

1.4.0 · source§

impl<T> Drop for alloc::sync::Weak<T>where T: ?Sized,

source§

impl<T> Drop for PyBuffer<T>

source§

impl<T> Drop for caffe2_imports::linked_list::LinkedList<T>

source§

impl<T> Drop for caffe2_imports::mpsc::Receiver<T>

source§

impl<T> Drop for caffe2_imports::mpsc::Sender<T>

source§

impl<T> Drop for SyncSender<T>

source§

impl<T> Drop for Arc<T>where T: ?Sized,

source§

impl<T> Drop for caffe2_imports::MutexGuard<'_, T>where T: ?Sized,

source§

impl<T> Drop for OnceLock<T>

source§

impl<T> Drop for Py<T>

Dropping a Py instance decrements the reference count on the object by 1.

source§

impl<T> Drop for Rc<T>where T: ?Sized,

source§

impl<T> Drop for caffe2_imports::RwLockReadGuard<'_, T>where T: ?Sized,

source§

impl<T> Drop for caffe2_imports::RwLockWriteGuard<'_, T>where T: ?Sized,

§

impl<T> Drop for SegQueue<T>

§

impl<T> Drop for ArrayQueue<T>

§

impl<T> Drop for AtomicCell<T>

§

impl<T> Drop for Injector<T>

§

impl<T> Drop for LocalFutureObj<'_, T>

§

impl<T> Drop for MutexGuard<'_, T>where T: ?Sized,

§

impl<T> Drop for MutexLockFuture<'_, T>where T: ?Sized,

§

impl<T> Drop for Owned<T>where T: Pointable + ?Sized,

§

impl<T> Drop for OwnedMutexGuard<T>where T: ?Sized,

§

impl<T> Drop for OwnedMutexLockFuture<T>where T: ?Sized,

§

impl<T> Drop for Receiver<T>

§

impl<T> Drop for Receiver<T>

§

impl<T> Drop for Receiver<T>

§

impl<T> Drop for Sender<T>

§

impl<T> Drop for Sender<T>

§

impl<T> Drop for ShardedLockWriteGuard<'_, T>where T: ?Sized,

§

impl<T> Drop for UnboundedReceiver<T>

source§

impl<T, A> Drop for Box<T, A>where A: Allocator, T: ?Sized,

1.6.0 · source§

impl<T, A> Drop for alloc::vec::drain::Drain<'_, T, A>where A: Allocator,

source§

impl<T, A> Drop for alloc::vec::into_iter::IntoIter<T, A>where A: Allocator,

source§

impl<T, A> Drop for Vec<T, A>where A: Allocator,

source§

impl<T, A> Drop for VecDeque<T, A>where A: Allocator,

1.6.0 · source§

impl<T, A> Drop for caffe2_imports::vec_deque::Drain<'_, T, A>where A: Allocator,

source§

impl<T, F> Drop for caffe2_imports::linked_list::DrainFilter<'_, T, F>where F: FnMut(&mut T) -> bool,

source§

impl<T, F> Drop for LazyLock<T, F>

source§

impl<T, F, A> Drop for caffe2_imports::btree_set::DrainFilter<'_, T, F, A>where A: Allocator + Clone, F: FnMut(&T) -> bool,

source§

impl<T, F, A> Drop for alloc::vec::drain_filter::DrainFilter<'_, T, F, A>where A: Allocator, F: FnMut(&mut T) -> bool,

source§

impl<T, F, S> Drop for ScopeGuard<T, F, S>where F: FnOnce(T), S: Strategy,

§

impl<T, U> Drop for MappedMutexGuard<'_, T, U>where T: ?Sized, U: ?Sized,

1.40.0 · source§

impl<T, const N: usize> Drop for caffe2_imports::_core::array::IntoIter<T, N>

source§

impl<W> Drop for BufWriter<W>where W: Write,