Trait re_sdk::SizeBytes

source ·
pub trait SizeBytes {
    // Required method
    fn heap_size_bytes(&self) -> u64;

    // Provided methods
    fn total_size_bytes(&self) -> u64 { ... }
    fn stack_size_bytes(&self) -> u64 { ... }
    fn is_pod() -> bool { ... }
}
Expand description

Approximations of stack and heap size for both internal and external types.

Motly used for statistics and triggering events such as garbage collection.

Required Methods§

source

fn heap_size_bytes(&self) -> u64

Returns the total size of self on the heap, in bytes.

Provided Methods§

source

fn total_size_bytes(&self) -> u64

Returns the total size of self in bytes, accounting for both stack and heap space.

source

fn stack_size_bytes(&self) -> u64

Returns the total size of self on the stack, in bytes.

Defaults to std::mem::size_of_val(self).

source

fn is_pod() -> bool

Is Self just plain old data?

If true, this will make most blanket implementations of SizeBytes much faster (e.g. Vec<T>).

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SizeBytes for BackgroundKind

source§

impl SizeBytes for Corner2D

source§

impl SizeBytes for MapProvider

source§

impl SizeBytes for PanelState

source§

impl SizeBytes for ViewFit

source§

impl SizeBytes for AggregationPolicy

source§

impl SizeBytes for Colormap

source§

impl SizeBytes for FillMode

source§

impl SizeBytes for MagnificationFilter

source§

impl SizeBytes for MarkerShape

source§

impl SizeBytes for TransformRelation

source§

impl SizeBytes for ChannelDatatype

source§

impl SizeBytes for ColorModel

source§

impl SizeBytes for PixelFormat

source§

impl SizeBytes for TensorBuffer

source§

impl SizeBytes for AffixFuzzer3

source§

impl SizeBytes for AffixFuzzer4

source§

impl SizeBytes for EnumTest

source§

impl SizeBytes for ValuedEnum

source§

impl SizeBytes for bool

source§

impl SizeBytes for f32

source§

impl SizeBytes for f64

source§

impl SizeBytes for i8

source§

impl SizeBytes for i16

source§

impl SizeBytes for i32

source§

impl SizeBytes for i64

source§

impl SizeBytes for i128

source§

impl SizeBytes for u8

source§

impl SizeBytes for u16

source§

impl SizeBytes for u32

source§

impl SizeBytes for u64

source§

impl SizeBytes for u128

source§

impl SizeBytes for UnitChunkShared

source§

impl SizeBytes for MyColor

source§

impl SizeBytes for MyIndex

source§

impl SizeBytes for MyLabel

source§

impl SizeBytes for MyPoint64

source§

impl SizeBytes for MyPoint

source§

impl SizeBytes for Hash64

source§

impl SizeBytes for EntityPathHash

source§

impl SizeBytes for ResolvedTimeRange

source§

impl SizeBytes for AnnotationContext

source§

impl SizeBytes for Arrows2D

source§

impl SizeBytes for Arrows3D

source§

impl SizeBytes for Asset3D

source§

impl SizeBytes for AssetVideo

source§

impl SizeBytes for BarChart

source§

impl SizeBytes for Boxes2D

source§

impl SizeBytes for Boxes3D

source§

impl SizeBytes for Capsules3D

source§

impl SizeBytes for DepthImage

source§

impl SizeBytes for DisconnectedSpace

source§

impl SizeBytes for Ellipsoids3D

source§

impl SizeBytes for EncodedImage

source§

impl SizeBytes for GeoLineStrings

source§

impl SizeBytes for GeoPoints

source§

impl SizeBytes for Image

source§

impl SizeBytes for InstancePoses3D

source§

impl SizeBytes for LineStrips2D

source§

impl SizeBytes for LineStrips3D

source§

impl SizeBytes for Mesh3D

source§

impl SizeBytes for Pinhole

source§

impl SizeBytes for Points2D

source§

impl SizeBytes for Points3D

source§

impl SizeBytes for Scalar

source§

impl SizeBytes for SegmentationImage

source§

impl SizeBytes for SeriesLine

source§

impl SizeBytes for SeriesPoint

source§

impl SizeBytes for Tensor

source§

impl SizeBytes for TextDocument

source§

impl SizeBytes for TextLog

source§

impl SizeBytes for Transform3D

source§

impl SizeBytes for VideoFrameReference

source§

impl SizeBytes for ViewCoordinates

source§

impl SizeBytes for Background

source§

impl SizeBytes for DataframeQuery

source§

impl SizeBytes for MapBackground

source§

impl SizeBytes for MapZoom

source§

impl SizeBytes for PlotLegend

source§

impl SizeBytes for ScalarAxis

source§

impl SizeBytes for SpaceViewBlueprint

source§

impl SizeBytes for SpaceViewContents

source§

impl SizeBytes for TensorScalarMapping

source§

impl SizeBytes for TensorSliceSelection

source§

impl SizeBytes for TensorViewFit

source§

impl SizeBytes for VisibleTimeRanges

source§

impl SizeBytes for VisualBounds2D

source§

impl SizeBytes for ActiveTab

source§

impl SizeBytes for ApplyLatestAt

source§

impl SizeBytes for ColumnShare

source§

impl SizeBytes for ComponentColumnSelector

source§

impl SizeBytes for FilterByRange

source§

impl SizeBytes for FilterIsNotNull

source§

impl SizeBytes for IncludedContent

source§

impl SizeBytes for Interactive

source§

impl SizeBytes for LockRangeDuringZoom

source§

impl SizeBytes for QueryExpression

source§

impl SizeBytes for RowShare

source§

impl SizeBytes for SelectedColumns

source§

impl SizeBytes for SpaceViewClass

source§

impl SizeBytes for SpaceViewOrigin

source§

impl SizeBytes for TensorDimensionIndexSlider

source§

impl SizeBytes for TimelineName

source§

impl SizeBytes for ViewerRecommendationHash

source§

impl SizeBytes for Visible

source§

impl SizeBytes for VisibleTimeRange

source§

impl SizeBytes for VisualBounds2D

source§

impl SizeBytes for ZoomLevel

source§

impl SizeBytes for ComponentColumnSelector

source§

impl SizeBytes for FilterByRange

source§

impl SizeBytes for FilterIsNotNull

source§

impl SizeBytes for SelectedColumns

source§

impl SizeBytes for TensorDimensionIndexSlider

source§

impl SizeBytes for BarChartView

source§

impl SizeBytes for DataframeView

source§

impl SizeBytes for MapView

source§

impl SizeBytes for Spatial2DView

source§

impl SizeBytes for Spatial3DView

source§

impl SizeBytes for TensorView

source§

impl SizeBytes for TextDocumentView

source§

impl SizeBytes for TextLogView

source§

impl SizeBytes for TimeSeriesView

source§

impl SizeBytes for AlbedoFactor

source§

impl SizeBytes for AnnotationContext

source§

impl SizeBytes for AxisLength

source§

impl SizeBytes for Blob

source§

impl SizeBytes for ClassId

source§

impl SizeBytes for Color

source§

impl SizeBytes for DepthMeter

source§

impl SizeBytes for DisconnectedSpace

source§

impl SizeBytes for DrawOrder

source§

impl SizeBytes for EntityPath

source§

impl SizeBytes for FillRatio

source§

impl SizeBytes for GammaCorrection

source§

impl SizeBytes for GeoLineString

source§

impl SizeBytes for HalfSize2D

source§

impl SizeBytes for HalfSize3D

source§

impl SizeBytes for ImageBuffer

source§

impl SizeBytes for ImageFormat

source§

impl SizeBytes for ImagePlaneDistance

source§

impl SizeBytes for KeypointId

source§

impl SizeBytes for LatLon

source§

impl SizeBytes for Length

source§

impl SizeBytes for LineStrip2D

source§

impl SizeBytes for LineStrip3D

source§

impl SizeBytes for MarkerSize

source§

impl SizeBytes for MediaType

source§

impl SizeBytes for Name

source§

impl SizeBytes for Opacity

source§

impl SizeBytes for PinholeProjection

source§

impl SizeBytes for PoseRotationAxisAngle

source§

impl SizeBytes for PoseRotationQuat

source§

impl SizeBytes for PoseScale3D

source§

impl SizeBytes for PoseTransformMat3x3

source§

impl SizeBytes for PoseTranslation3D

source§

impl SizeBytes for Position2D

source§

impl SizeBytes for Position3D

source§

impl SizeBytes for Radius

source§

impl SizeBytes for Range1D

source§

impl SizeBytes for Resolution

source§

impl SizeBytes for RotationAxisAngle

source§

impl SizeBytes for RotationQuat

source§

impl SizeBytes for Scalar

source§

impl SizeBytes for Scale3D

source§

impl SizeBytes for ShowLabels

source§

impl SizeBytes for StrokeWidth

source§

impl SizeBytes for TensorData

source§

impl SizeBytes for TensorDimensionIndexSelection

source§

impl SizeBytes for TensorHeightDimension

source§

impl SizeBytes for TensorWidthDimension

source§

impl SizeBytes for Texcoord2D

source§

impl SizeBytes for Text

source§

impl SizeBytes for TextLogLevel

source§

impl SizeBytes for TransformMat3x3

source§

impl SizeBytes for Translation3D

source§

impl SizeBytes for TriangleIndices

source§

impl SizeBytes for ValueRange

source§

impl SizeBytes for Vector2D

source§

impl SizeBytes for Vector3D

source§

impl SizeBytes for VideoTimestamp

source§

impl SizeBytes for ViewCoordinates

source§

impl SizeBytes for Angle

source§

impl SizeBytes for AnnotationInfo

source§

impl SizeBytes for Blob

source§

impl SizeBytes for ClassDescription

source§

impl SizeBytes for ClassDescriptionMapElem

source§

impl SizeBytes for ClassId

source§

impl SizeBytes for DVec2D

source§

impl SizeBytes for ImageFormat

source§

impl SizeBytes for KeypointId

source§

impl SizeBytes for KeypointPair

source§

impl SizeBytes for Mat3x3

source§

impl SizeBytes for Mat4x4

source§

impl SizeBytes for Quaternion

source§

impl SizeBytes for Range1D

source§

impl SizeBytes for Range2D

source§

impl SizeBytes for Rgba32

source§

impl SizeBytes for RotationAxisAngle

source§

impl SizeBytes for TensorData

source§

impl SizeBytes for TensorDimension

source§

impl SizeBytes for TensorDimensionIndexSelection

source§

impl SizeBytes for TensorDimensionSelection

source§

impl SizeBytes for Uuid

source§

impl SizeBytes for UVec2D

source§

impl SizeBytes for UVec3D

source§

impl SizeBytes for UVec4D

source§

impl SizeBytes for Vec2D

source§

impl SizeBytes for Vec3D

source§

impl SizeBytes for Vec4D

source§

impl SizeBytes for VideoTimestamp

source§

impl SizeBytes for ViewCoordinates

source§

impl SizeBytes for AffixFuzzer1

source§

impl SizeBytes for AffixFuzzer2

source§

impl SizeBytes for AffixFuzzer3

source§

impl SizeBytes for AffixFuzzer4

source§

impl SizeBytes for AffixFuzzer1

source§

impl SizeBytes for AffixFuzzer2

source§

impl SizeBytes for AffixFuzzer3

source§

impl SizeBytes for AffixFuzzer4

source§

impl SizeBytes for AffixFuzzer5

source§

impl SizeBytes for AffixFuzzer6

source§

impl SizeBytes for AffixFuzzer7

source§

impl SizeBytes for AffixFuzzer8

source§

impl SizeBytes for AffixFuzzer9

source§

impl SizeBytes for AffixFuzzer10

source§

impl SizeBytes for AffixFuzzer11

source§

impl SizeBytes for AffixFuzzer12

source§

impl SizeBytes for AffixFuzzer13

source§

impl SizeBytes for AffixFuzzer14

source§

impl SizeBytes for AffixFuzzer15

source§

impl SizeBytes for AffixFuzzer16

source§

impl SizeBytes for AffixFuzzer17

source§

impl SizeBytes for AffixFuzzer18

source§

impl SizeBytes for AffixFuzzer19

source§

impl SizeBytes for AffixFuzzer20

source§

impl SizeBytes for AffixFuzzer21

source§

impl SizeBytes for AffixFuzzer22

source§

impl SizeBytes for AffixFuzzer23

source§

impl SizeBytes for AffixFuzzer1

source§

impl SizeBytes for AffixFuzzer2

source§

impl SizeBytes for AffixFuzzer5

source§

impl SizeBytes for AffixFuzzer20

source§

impl SizeBytes for AffixFuzzer21

source§

impl SizeBytes for AffixFuzzer22

source§

impl SizeBytes for FlattenedScalar

source§

impl SizeBytes for MultiEnum

source§

impl SizeBytes for PrimitiveComponent

source§

impl SizeBytes for StringComponent

source§

impl SizeBytes for Box<dyn Array>

source§

impl SizeBytes for String

source§

fn heap_size_bytes(&self) -> u64

Does not take capacity into account.

source§

impl<K> SizeBytes for BTreeSet<K>
where K: SizeBytes,

source§

impl<K, V> SizeBytes for BTreeMap<K, V>
where K: SizeBytes, V: SizeBytes,

source§

impl<K, V, S> SizeBytes for HashMap<K, V, S>
where K: SizeBytes, V: SizeBytes,

source§

impl<T> SizeBytes for Option<T>
where T: SizeBytes,

source§

impl<T> SizeBytes for Box<T>
where T: SizeBytes,

source§

impl<T> SizeBytes for VecDeque<T>
where T: SizeBytes,

source§

fn heap_size_bytes(&self) -> u64

Does not take capacity into account.

source§

impl<T> SizeBytes for Arc<T>
where T: SizeBytes,

source§

impl<T> SizeBytes for Vec<T>
where T: SizeBytes,

source§

fn heap_size_bytes(&self) -> u64

Does not take capacity into account.

source§

impl<T, U> SizeBytes for (T, U)
where T: SizeBytes, U: SizeBytes,

source§

impl<T, U, V> SizeBytes for (T, U, V)
where T: SizeBytes, U: SizeBytes, V: SizeBytes,

source§

impl<T, U, V, W> SizeBytes for (T, U, V, W)
where T: SizeBytes, U: SizeBytes, V: SizeBytes, W: SizeBytes,

source§

impl<T, const N: usize> SizeBytes for [T; N]
where T: SizeBytes,

source§

impl<T, const N: usize> SizeBytes for SmallVec<[T; N]>
where T: SizeBytes,

source§

fn heap_size_bytes(&self) -> u64

Does not take capacity into account.

Implementors§