Trait re_types::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 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 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 EntityPath

source§

impl SizeBytes for EntityPathHash

source§

impl SizeBytes for ResolvedTimeRange

source§

impl SizeBytes for TimePoint

source§

impl SizeBytes for TimeInt

source§

impl SizeBytes for Timeline

source§

impl SizeBytes for Tuid

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 SizeBytes for DataType

source§

impl SizeBytes for Field

source§

impl SizeBytes for StructArray

source§

impl SizeBytes for dyn Array

source§

impl SizeBytes for f16

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> SizeBytes for ListArray<T>
where T: SizeBytes + Offset,

source§

impl<T> SizeBytes for PrimitiveArray<T>
where T: SizeBytes + NativeType,

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§

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 TimeRangeBoundary

source§

impl SizeBytes for re_types::testing::datatypes::affix_fuzzer3::AffixFuzzer3

source§

impl SizeBytes for re_types::testing::datatypes::affix_fuzzer4::AffixFuzzer4

source§

impl SizeBytes for EnumTest

source§

impl SizeBytes for ValuedEnum

source§

impl SizeBytes for re_types::archetypes::_archetypes::annotation_context::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 re_types::archetypes::_archetypes::disconnected_space::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 re_types::archetypes::_archetypes::scalar::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 re_types::archetypes::_archetypes::view_coordinates::ViewCoordinates

source§

impl SizeBytes for Clear

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 re_types::blueprint::archetypes::visual_bounds2d::VisualBounds2D

source§

impl SizeBytes for ActiveTab

source§

impl SizeBytes for ApplyLatestAt

source§

impl SizeBytes for ColumnShare

source§

impl SizeBytes for re_types::blueprint::components::component_column_selector::ComponentColumnSelector

source§

impl SizeBytes for re_types::blueprint::components::filter_by_range::FilterByRange

source§

impl SizeBytes for re_types::blueprint::components::filter_is_not_null::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 re_types::blueprint::components::selected_columns::SelectedColumns

source§

impl SizeBytes for SpaceViewClass

source§

impl SizeBytes for SpaceViewOrigin

source§

impl SizeBytes for re_types::blueprint::components::tensor_dimension_index_slider::TensorDimensionIndexSlider

source§

impl SizeBytes for TimelineName

source§

impl SizeBytes for ViewerRecommendationHash

source§

impl SizeBytes for Visible

source§

impl SizeBytes for re_types::blueprint::components::visible_time_range::VisibleTimeRange

source§

impl SizeBytes for re_types::blueprint::components::visual_bounds2d::VisualBounds2D

source§

impl SizeBytes for ZoomLevel

source§

impl SizeBytes for re_types::blueprint::datatypes::component_column_selector::ComponentColumnSelector

source§

impl SizeBytes for re_types::blueprint::datatypes::filter_by_range::FilterByRange

source§

impl SizeBytes for re_types::blueprint::datatypes::filter_is_not_null::FilterIsNotNull

source§

impl SizeBytes for re_types::blueprint::datatypes::selected_columns::SelectedColumns

source§

impl SizeBytes for re_types::blueprint::datatypes::tensor_dimension_index_slider::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 re_types::components::_components::annotation_context::AnnotationContext

source§

impl SizeBytes for AxisLength

source§

impl SizeBytes for re_types::components::_components::blob::Blob

source§

impl SizeBytes for re_types::components::_components::class_id::ClassId

source§

impl SizeBytes for Color

source§

impl SizeBytes for DepthMeter

source§

impl SizeBytes for re_types::components::_components::disconnected_space::DisconnectedSpace

source§

impl SizeBytes for DrawOrder

source§

impl SizeBytes for re_types::components::_components::entity_path::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 re_types::components::_components::image_format::ImageFormat

source§

impl SizeBytes for ImagePlaneDistance

source§

impl SizeBytes for re_types::components::_components::keypoint_id::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 re_types::components::_components::range1d::Range1D

source§

impl SizeBytes for Resolution

source§

impl SizeBytes for re_types::components::_components::rotation_axis_angle::RotationAxisAngle

source§

impl SizeBytes for RotationQuat

source§

impl SizeBytes for re_types::components::_components::scalar::Scalar

source§

impl SizeBytes for Scale3D

source§

impl SizeBytes for ShowLabels

source§

impl SizeBytes for StrokeWidth

source§

impl SizeBytes for re_types::components::_components::tensor_data::TensorData

source§

impl SizeBytes for re_types::components::_components::tensor_dimension_index_selection::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 re_types::components::_components::video_timestamp::VideoTimestamp

source§

impl SizeBytes for re_types::components::_components::view_coordinates::ViewCoordinates

source§

impl SizeBytes for ClearIsRecursive

source§

impl SizeBytes for Angle

source§

impl SizeBytes for AnnotationInfo

source§

impl SizeBytes for re_types::datatypes::_datatypes::blob::Blob

source§

impl SizeBytes for ClassDescription

source§

impl SizeBytes for ClassDescriptionMapElem

source§

impl SizeBytes for re_types::datatypes::_datatypes::class_id::ClassId

source§

impl SizeBytes for DVec2D

source§

impl SizeBytes for re_types::datatypes::_datatypes::image_format::ImageFormat

source§

impl SizeBytes for re_types::datatypes::_datatypes::keypoint_id::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 re_types::datatypes::_datatypes::range1d::Range1D

source§

impl SizeBytes for Range2D

source§

impl SizeBytes for Rgba32

source§

impl SizeBytes for re_types::datatypes::_datatypes::rotation_axis_angle::RotationAxisAngle

source§

impl SizeBytes for re_types::datatypes::_datatypes::tensor_data::TensorData

source§

impl SizeBytes for TensorDimension

source§

impl SizeBytes for re_types::datatypes::_datatypes::tensor_dimension_index_selection::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 re_types::datatypes::_datatypes::video_timestamp::VideoTimestamp

source§

impl SizeBytes for re_types::datatypes::_datatypes::view_coordinates::ViewCoordinates

source§

impl SizeBytes for Bool

source§

impl SizeBytes for re_types::datatypes::EntityPath

source§

impl SizeBytes for Float32

source§

impl SizeBytes for Float64

source§

impl SizeBytes for re_types::datatypes::TimeInt

source§

impl SizeBytes for TimeRange

source§

impl SizeBytes for UInt16

source§

impl SizeBytes for UInt32

source§

impl SizeBytes for UInt64

source§

impl SizeBytes for Utf8

source§

impl SizeBytes for re_types::datatypes::VisibleTimeRange

source§

impl SizeBytes for ArrowString

source§

impl SizeBytes for ComponentName

source§

impl SizeBytes for DatatypeName

source§

impl SizeBytes for re_types::testing::archetypes::affix_fuzzer1::AffixFuzzer1

source§

impl SizeBytes for re_types::testing::archetypes::affix_fuzzer2::AffixFuzzer2

source§

impl SizeBytes for re_types::testing::archetypes::affix_fuzzer3::AffixFuzzer3

source§

impl SizeBytes for re_types::testing::archetypes::affix_fuzzer4::AffixFuzzer4

source§

impl SizeBytes for re_types::testing::components::affix_fuzzer1::AffixFuzzer1

source§

impl SizeBytes for re_types::testing::components::affix_fuzzer2::AffixFuzzer2

source§

impl SizeBytes for re_types::testing::components::affix_fuzzer3::AffixFuzzer3

source§

impl SizeBytes for re_types::testing::components::affix_fuzzer4::AffixFuzzer4

source§

impl SizeBytes for re_types::testing::components::affix_fuzzer5::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 re_types::testing::components::affix_fuzzer20::AffixFuzzer20

source§

impl SizeBytes for re_types::testing::components::affix_fuzzer21::AffixFuzzer21

source§

impl SizeBytes for re_types::testing::components::affix_fuzzer22::AffixFuzzer22

source§

impl SizeBytes for AffixFuzzer23

source§

impl SizeBytes for re_types::testing::datatypes::affix_fuzzer1::AffixFuzzer1

source§

impl SizeBytes for re_types::testing::datatypes::affix_fuzzer2::AffixFuzzer2

source§

impl SizeBytes for re_types::testing::datatypes::affix_fuzzer5::AffixFuzzer5

source§

impl SizeBytes for re_types::testing::datatypes::affix_fuzzer20::AffixFuzzer20

source§

impl SizeBytes for re_types::testing::datatypes::affix_fuzzer21::AffixFuzzer21

source§

impl SizeBytes for re_types::testing::datatypes::affix_fuzzer22::AffixFuzzer22

source§

impl SizeBytes for FlattenedScalar

source§

impl SizeBytes for MultiEnum

source§

impl SizeBytes for PrimitiveComponent

source§

impl SizeBytes for StringComponent

source§

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