Struct rerun::components::ViewCoordinates
source · #[repr(transparent)]pub struct ViewCoordinates(pub ViewCoordinates);
Expand description
Component: How we interpret the coordinate system of an entity/space.
For instance: What is “up”? What does the Z axis mean?
The three coordinates are always ordered as [x, y, z].
For example [Right, Down, Forward] means that the X axis points to the right, the Y axis points down, and the Z axis points forward.
⚠ Rerun does not yet support left-handed coordinate systems.
The following constants are used to represent the different directions:
- Up = 1
- Down = 2
- Right = 3
- Left = 4
- Forward = 5
- Back = 6
Tuple Fields§
§0: ViewCoordinates
The directions of the [x, y, z] axes.
Implementations§
source§impl ViewCoordinates
impl ViewCoordinates
sourcepub const fn new(x: ViewDir, y: ViewDir, z: ViewDir) -> ViewCoordinates
pub const fn new(x: ViewDir, y: ViewDir, z: ViewDir) -> ViewCoordinates
Construct a new ViewCoordinates
from an array of ViewDir
s.
sourcepub fn from_up_and_handedness(
up: SignedAxis3,
handedness: Handedness
) -> ViewCoordinates
pub fn from_up_and_handedness( up: SignedAxis3, handedness: Handedness ) -> ViewCoordinates
Chooses a coordinate system based on just an up-axis.
sourcepub fn sanity_check(&self) -> Result<(), String>
pub fn sanity_check(&self) -> Result<(), String>
Returns an error if this does not span all three dimensions.
sourcepub fn up(&self) -> Option<SignedAxis3>
pub fn up(&self) -> Option<SignedAxis3>
The up-axis.
sourcepub fn right(&self) -> Option<SignedAxis3>
pub fn right(&self) -> Option<SignedAxis3>
The right-axis.
sourcepub fn forward(&self) -> Option<SignedAxis3>
pub fn forward(&self) -> Option<SignedAxis3>
The forward-axis.
sourcepub fn describe_short(&self) -> String
pub fn describe_short(&self) -> String
Describe using three letters, e.g. RDF
for X=Right, Y=Down, Z=Forward.
sourcepub fn describe(&self) -> String
pub fn describe(&self) -> String
A long description of the coordinate system, explicitly writing out all directions.
sourcepub fn from_other(&self, other: &ViewCoordinates) -> Mat3
pub fn from_other(&self, other: &ViewCoordinates) -> Mat3
Returns a matrix that transforms from another coordinate system to this (self) one.
sourcepub fn to_rdf(&self) -> Mat3
pub fn to_rdf(&self) -> Mat3
Returns a matrix that transforms this coordinate system to RDF.
(RDF: X=Right, Y=Down, Z=Forward)
sourcepub fn from_rdf(&self) -> Mat3
pub fn from_rdf(&self) -> Mat3
Returns a matrix that transforms from RDF to this coordinate system.
(RDF: X=Right, Y=Down, Z=Forward)
sourcepub fn to_rub(&self) -> Mat3
pub fn to_rub(&self) -> Mat3
Returns a matrix that transforms this coordinate system to RUB.
(RUB: X=Right, Y=Up, Z=Back)
sourcepub fn from_rub(&self) -> Mat3
pub fn from_rub(&self) -> Mat3
Returns a matrix that transforms from RUB to this coordinate system.
(RUB: X=Right, Y=Up, Z=Back)
sourcepub fn from_rub_quat(&self) -> Result<Quat, String>
pub fn from_rub_quat(&self) -> Result<Quat, String>
Returns a quaternion that rotates from RUB to this coordinate system.
Errors if the coordinate system is left-handed or degenerate.
(RUB: X=Right, Y=Up, Z=Back)
sourcepub fn handedness(&self) -> Result<Handedness, String>
pub fn handedness(&self) -> Result<Handedness, String>
Returns whether or not this coordinate system is left or right handed.
If the coordinate system is degenerate, an error is returned.
source§impl ViewCoordinates
impl ViewCoordinates
sourcepub const ULF: ViewCoordinates = _
pub const ULF: ViewCoordinates = _
X=Up, Y=Left, Z=Forward
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const UFL: ViewCoordinates = _
pub const UFL: ViewCoordinates = _
X=Up, Y=Forward, Z=Left
sourcepub const LUF: ViewCoordinates = _
pub const LUF: ViewCoordinates = _
X=Left, Y=Up, Z=Forward
sourcepub const LFU: ViewCoordinates = _
pub const LFU: ViewCoordinates = _
X=Left, Y=Forward, Z=Up
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const FUL: ViewCoordinates = _
pub const FUL: ViewCoordinates = _
X=Forward, Y=Up, Z=Left
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const FLU: ViewCoordinates = _
pub const FLU: ViewCoordinates = _
X=Forward, Y=Left, Z=Up
sourcepub const ULB: ViewCoordinates = _
pub const ULB: ViewCoordinates = _
X=Up, Y=Left, Z=Back
sourcepub const UBL: ViewCoordinates = _
pub const UBL: ViewCoordinates = _
X=Up, Y=Back, Z=Left
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const LUB: ViewCoordinates = _
pub const LUB: ViewCoordinates = _
X=Left, Y=Up, Z=Back
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const LBU: ViewCoordinates = _
pub const LBU: ViewCoordinates = _
X=Left, Y=Back, Z=Up
sourcepub const BUL: ViewCoordinates = _
pub const BUL: ViewCoordinates = _
X=Back, Y=Up, Z=Left
sourcepub const BLU: ViewCoordinates = _
pub const BLU: ViewCoordinates = _
X=Back, Y=Left, Z=Up
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const URF: ViewCoordinates = _
pub const URF: ViewCoordinates = _
X=Up, Y=Right, Z=Forward
sourcepub const UFR: ViewCoordinates = _
pub const UFR: ViewCoordinates = _
X=Up, Y=Forward, Z=Right
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const RUF: ViewCoordinates = _
pub const RUF: ViewCoordinates = _
X=Right, Y=Up, Z=Forward
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const RFU: ViewCoordinates = _
pub const RFU: ViewCoordinates = _
X=Right, Y=Forward, Z=Up
sourcepub const FUR: ViewCoordinates = _
pub const FUR: ViewCoordinates = _
X=Forward, Y=Up, Z=Right
sourcepub const FRU: ViewCoordinates = _
pub const FRU: ViewCoordinates = _
X=Forward, Y=Right, Z=Up
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const URB: ViewCoordinates = _
pub const URB: ViewCoordinates = _
X=Up, Y=Right, Z=Back
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const UBR: ViewCoordinates = _
pub const UBR: ViewCoordinates = _
X=Up, Y=Back, Z=Right
sourcepub const RUB: ViewCoordinates = _
pub const RUB: ViewCoordinates = _
X=Right, Y=Up, Z=Back
sourcepub const RBU: ViewCoordinates = _
pub const RBU: ViewCoordinates = _
X=Right, Y=Back, Z=Up
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const BUR: ViewCoordinates = _
pub const BUR: ViewCoordinates = _
X=Back, Y=Up, Z=Right
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const BRU: ViewCoordinates = _
pub const BRU: ViewCoordinates = _
X=Back, Y=Right, Z=Up
sourcepub const DLF: ViewCoordinates = _
pub const DLF: ViewCoordinates = _
X=Down, Y=Left, Z=Forward
sourcepub const DFL: ViewCoordinates = _
pub const DFL: ViewCoordinates = _
X=Down, Y=Forward, Z=Left
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const LDF: ViewCoordinates = _
pub const LDF: ViewCoordinates = _
X=Left, Y=Down, Z=Forward
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const LFD: ViewCoordinates = _
pub const LFD: ViewCoordinates = _
X=Left, Y=Forward, Z=Down
sourcepub const FDL: ViewCoordinates = _
pub const FDL: ViewCoordinates = _
X=Forward, Y=Down, Z=Left
sourcepub const FLD: ViewCoordinates = _
pub const FLD: ViewCoordinates = _
X=Forward, Y=Left, Z=Down
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const DLB: ViewCoordinates = _
pub const DLB: ViewCoordinates = _
X=Down, Y=Left, Z=Back
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const DBL: ViewCoordinates = _
pub const DBL: ViewCoordinates = _
X=Down, Y=Back, Z=Left
sourcepub const LDB: ViewCoordinates = _
pub const LDB: ViewCoordinates = _
X=Left, Y=Down, Z=Back
sourcepub const LBD: ViewCoordinates = _
pub const LBD: ViewCoordinates = _
X=Left, Y=Back, Z=Down
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const BDL: ViewCoordinates = _
pub const BDL: ViewCoordinates = _
X=Back, Y=Down, Z=Left
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const BLD: ViewCoordinates = _
pub const BLD: ViewCoordinates = _
X=Back, Y=Left, Z=Down
sourcepub const DRF: ViewCoordinates = _
pub const DRF: ViewCoordinates = _
X=Down, Y=Right, Z=Forward
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const DFR: ViewCoordinates = _
pub const DFR: ViewCoordinates = _
X=Down, Y=Forward, Z=Right
sourcepub const RDF: ViewCoordinates = _
pub const RDF: ViewCoordinates = _
X=Right, Y=Down, Z=Forward
sourcepub const RFD: ViewCoordinates = _
pub const RFD: ViewCoordinates = _
X=Right, Y=Forward, Z=Down
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const FDR: ViewCoordinates = _
pub const FDR: ViewCoordinates = _
X=Forward, Y=Down, Z=Right
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const FRD: ViewCoordinates = _
pub const FRD: ViewCoordinates = _
X=Forward, Y=Right, Z=Down
sourcepub const DRB: ViewCoordinates = _
pub const DRB: ViewCoordinates = _
X=Down, Y=Right, Z=Back
sourcepub const DBR: ViewCoordinates = _
pub const DBR: ViewCoordinates = _
X=Down, Y=Back, Z=Right
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const RDB: ViewCoordinates = _
pub const RDB: ViewCoordinates = _
X=Right, Y=Down, Z=Back
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const RBD: ViewCoordinates = _
pub const RBD: ViewCoordinates = _
X=Right, Y=Back, Z=Down
sourcepub const BDR: ViewCoordinates = _
pub const BDR: ViewCoordinates = _
X=Back, Y=Down, Z=Right
sourcepub const BRD: ViewCoordinates = _
pub const BRD: ViewCoordinates = _
X=Back, Y=Right, Z=Down
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const RIGHT_HAND_X_UP: ViewCoordinates = _
pub const RIGHT_HAND_X_UP: ViewCoordinates = _
X=Up, Y=Right, Z=Forward
sourcepub const RIGHT_HAND_X_DOWN: ViewCoordinates = _
pub const RIGHT_HAND_X_DOWN: ViewCoordinates = _
X=Down, Y=Right, Z=Back
sourcepub const RIGHT_HAND_Y_UP: ViewCoordinates = _
pub const RIGHT_HAND_Y_UP: ViewCoordinates = _
X=Right, Y=Up, Z=Back
sourcepub const RIGHT_HAND_Y_DOWN: ViewCoordinates = _
pub const RIGHT_HAND_Y_DOWN: ViewCoordinates = _
X=Right, Y=Down, Z=Forward
sourcepub const RIGHT_HAND_Z_UP: ViewCoordinates = _
pub const RIGHT_HAND_Z_UP: ViewCoordinates = _
X=Right, Y=Forward, Z=Up
sourcepub const RIGHT_HAND_Z_DOWN: ViewCoordinates = _
pub const RIGHT_HAND_Z_DOWN: ViewCoordinates = _
X=Right, Y=Back, Z=Down
sourcepub const LEFT_HAND_X_UP: ViewCoordinates = _
pub const LEFT_HAND_X_UP: ViewCoordinates = _
X=Up, Y=Right, Z=Back
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const LEFT_HAND_X_DOWN: ViewCoordinates = _
pub const LEFT_HAND_X_DOWN: ViewCoordinates = _
X=Down, Y=Right, Z=Forward
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const LEFT_HAND_Y_UP: ViewCoordinates = _
pub const LEFT_HAND_Y_UP: ViewCoordinates = _
X=Right, Y=Up, Z=Forward
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const LEFT_HAND_Y_DOWN: ViewCoordinates = _
pub const LEFT_HAND_Y_DOWN: ViewCoordinates = _
X=Right, Y=Down, Z=Back
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const LEFT_HAND_Z_UP: ViewCoordinates = _
pub const LEFT_HAND_Z_UP: ViewCoordinates = _
X=Right, Y=Back, Z=Up
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
sourcepub const LEFT_HAND_Z_DOWN: ViewCoordinates = _
pub const LEFT_HAND_Z_DOWN: ViewCoordinates = _
X=Right, Y=Forward, Z=Down
⚠️ This is a left-handed coordinate system, which is not yet supported by Rerun.
Methods from Deref<Target = [u8; 3]>§
1.57.0 · sourcepub fn as_slice(&self) -> &[T]
pub fn as_slice(&self) -> &[T]
Returns a slice containing the entire array. Equivalent to &s[..]
.
1.57.0 · sourcepub fn as_mut_slice(&mut self) -> &mut [T]
pub fn as_mut_slice(&mut self) -> &mut [T]
Returns a mutable slice containing the entire array. Equivalent to
&mut s[..]
.
1.77.0 · sourcepub fn each_ref(&self) -> [&T; N]
pub fn each_ref(&self) -> [&T; N]
Borrows each element and returns an array of references with the same
size as self
.
§Example
let floats = [3.1, 2.7, -1.0];
let float_refs: [&f64; 3] = floats.each_ref();
assert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
This method is particularly useful if combined with other methods, like
map
. This way, you can avoid moving the original
array if its elements are not Copy
.
let strings = ["Ferris".to_string(), "♥".to_string(), "Rust".to_string()];
let is_ascii = strings.each_ref().map(|s| s.is_ascii());
assert_eq!(is_ascii, [true, false, true]);
// We can still access the original array: it has not been moved.
assert_eq!(strings.len(), 3);
1.77.0 · sourcepub fn each_mut(&mut self) -> [&mut T; N]
pub fn each_mut(&mut self) -> [&mut T; N]
Borrows each element mutably and returns an array of mutable references
with the same size as self
.
§Example
let mut floats = [3.1, 2.7, -1.0];
let float_refs: [&mut f64; 3] = floats.each_mut();
*float_refs[0] = 0.0;
assert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);
assert_eq!(floats, [0.0, 2.7, -1.0]);
sourcepub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])
🔬This is a nightly-only experimental API. (split_array
)
pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])
split_array
)Divides one array reference into two at an index.
The first will contain all indices from [0, M)
(excluding
the index M
itself) and the second will contain all
indices from [M, N)
(excluding the index N
itself).
§Panics
Panics if M > N
.
§Examples
#![feature(split_array)]
let v = [1, 2, 3, 4, 5, 6];
{
let (left, right) = v.split_array_ref::<0>();
assert_eq!(left, &[]);
assert_eq!(right, &[1, 2, 3, 4, 5, 6]);
}
{
let (left, right) = v.split_array_ref::<2>();
assert_eq!(left, &[1, 2]);
assert_eq!(right, &[3, 4, 5, 6]);
}
{
let (left, right) = v.split_array_ref::<6>();
assert_eq!(left, &[1, 2, 3, 4, 5, 6]);
assert_eq!(right, &[]);
}
sourcepub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])
🔬This is a nightly-only experimental API. (split_array
)
pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])
split_array
)Divides one mutable array reference into two at an index.
The first will contain all indices from [0, M)
(excluding
the index M
itself) and the second will contain all
indices from [M, N)
(excluding the index N
itself).
§Panics
Panics if M > N
.
§Examples
#![feature(split_array)]
let mut v = [1, 0, 3, 0, 5, 6];
let (left, right) = v.split_array_mut::<2>();
assert_eq!(left, &mut [1, 0][..]);
assert_eq!(right, &mut [3, 0, 5, 6]);
left[1] = 2;
right[1] = 4;
assert_eq!(v, [1, 2, 3, 4, 5, 6]);
sourcepub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])
🔬This is a nightly-only experimental API. (split_array
)
pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])
split_array
)Divides one array reference into two at an index from the end.
The first will contain all indices from [0, N - M)
(excluding
the index N - M
itself) and the second will contain all
indices from [N - M, N)
(excluding the index N
itself).
§Panics
Panics if M > N
.
§Examples
#![feature(split_array)]
let v = [1, 2, 3, 4, 5, 6];
{
let (left, right) = v.rsplit_array_ref::<0>();
assert_eq!(left, &[1, 2, 3, 4, 5, 6]);
assert_eq!(right, &[]);
}
{
let (left, right) = v.rsplit_array_ref::<2>();
assert_eq!(left, &[1, 2, 3, 4]);
assert_eq!(right, &[5, 6]);
}
{
let (left, right) = v.rsplit_array_ref::<6>();
assert_eq!(left, &[]);
assert_eq!(right, &[1, 2, 3, 4, 5, 6]);
}
sourcepub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])
🔬This is a nightly-only experimental API. (split_array
)
pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])
split_array
)Divides one mutable array reference into two at an index from the end.
The first will contain all indices from [0, N - M)
(excluding
the index N - M
itself) and the second will contain all
indices from [N - M, N)
(excluding the index N
itself).
§Panics
Panics if M > N
.
§Examples
#![feature(split_array)]
let mut v = [1, 0, 3, 0, 5, 6];
let (left, right) = v.rsplit_array_mut::<4>();
assert_eq!(left, &mut [1, 0]);
assert_eq!(right, &mut [3, 0, 5, 6][..]);
left[1] = 2;
right[1] = 4;
assert_eq!(v, [1, 2, 3, 4, 5, 6]);
sourcepub fn as_ascii(&self) -> Option<&[AsciiChar; N]>
🔬This is a nightly-only experimental API. (ascii_char
)
pub fn as_ascii(&self) -> Option<&[AsciiChar; N]>
ascii_char
)Converts this array of bytes into a array of ASCII characters,
or returns None
if any of the characters is non-ASCII.
§Examples
#![feature(ascii_char)]
#![feature(const_option)]
const HEX_DIGITS: [std::ascii::Char; 16] =
*b"0123456789abcdef".as_ascii().unwrap();
assert_eq!(HEX_DIGITS[1].as_str(), "1");
assert_eq!(HEX_DIGITS[10].as_str(), "a");
sourcepub unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]
🔬This is a nightly-only experimental API. (ascii_char
)
pub unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]
ascii_char
)Converts this array of bytes into a array of ASCII characters, without checking whether they’re valid.
§Safety
Every byte in the array must be in 0..=127
, or else this is UB.
Trait Implementations§
source§impl Borrow<ViewCoordinates> for ViewCoordinates
impl Borrow<ViewCoordinates> for ViewCoordinates
source§fn borrow(&self) -> &ViewCoordinates
fn borrow(&self) -> &ViewCoordinates
source§impl Clone for ViewCoordinates
impl Clone for ViewCoordinates
source§fn clone(&self) -> ViewCoordinates
fn clone(&self) -> ViewCoordinates
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ViewCoordinates
impl Debug for ViewCoordinates
source§impl Default for ViewCoordinates
impl Default for ViewCoordinates
source§fn default() -> ViewCoordinates
fn default() -> ViewCoordinates
source§impl Deref for ViewCoordinates
impl Deref for ViewCoordinates
§type Target = ViewCoordinates
type Target = ViewCoordinates
source§fn deref(&self) -> &ViewCoordinates
fn deref(&self) -> &ViewCoordinates
source§impl DerefMut for ViewCoordinates
impl DerefMut for ViewCoordinates
source§fn deref_mut(&mut self) -> &mut ViewCoordinates
fn deref_mut(&mut self) -> &mut ViewCoordinates
source§impl<T> From<T> for ViewCoordinateswhere
T: Into<ViewCoordinates>,
impl<T> From<T> for ViewCoordinateswhere
T: Into<ViewCoordinates>,
source§fn from(v: T) -> ViewCoordinates
fn from(v: T) -> ViewCoordinates
source§impl FromStr for ViewCoordinates
impl FromStr for ViewCoordinates
source§impl Loggable for ViewCoordinates
impl Loggable for ViewCoordinates
type Name = ComponentName
source§fn name() -> <ViewCoordinates as Loggable>::Name
fn name() -> <ViewCoordinates as Loggable>::Name
rerun.datatypes.Vec2D
.source§fn arrow_datatype() -> DataType
fn arrow_datatype() -> DataType
arrow2::datatypes::DataType
, excluding datatype extensions.source§fn to_arrow_opt<'a>(
data: impl IntoIterator<Item = Option<impl Into<Cow<'a, ViewCoordinates>>>>
) -> Result<Box<dyn Array>, SerializationError>where
ViewCoordinates: Clone + 'a,
fn to_arrow_opt<'a>(
data: impl IntoIterator<Item = Option<impl Into<Cow<'a, ViewCoordinates>>>>
) -> Result<Box<dyn Array>, SerializationError>where
ViewCoordinates: Clone + 'a,
source§fn from_arrow_opt(
arrow_data: &(dyn Array + 'static)
) -> Result<Vec<Option<ViewCoordinates>>, DeserializationError>where
ViewCoordinates: Sized,
fn from_arrow_opt(
arrow_data: &(dyn Array + 'static)
) -> Result<Vec<Option<ViewCoordinates>>, DeserializationError>where
ViewCoordinates: Sized,
Loggable
s.source§fn from_arrow(
arrow_data: &(dyn Array + 'static)
) -> Result<Vec<ViewCoordinates>, DeserializationError>where
ViewCoordinates: Sized,
fn from_arrow(
arrow_data: &(dyn Array + 'static)
) -> Result<Vec<ViewCoordinates>, DeserializationError>where
ViewCoordinates: Sized,
Loggable
s.source§impl PartialEq for ViewCoordinates
impl PartialEq for ViewCoordinates
source§fn eq(&self, other: &ViewCoordinates) -> bool
fn eq(&self, other: &ViewCoordinates) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl SizeBytes for ViewCoordinates
impl SizeBytes for ViewCoordinates
source§fn heap_size_bytes(&self) -> u64
fn heap_size_bytes(&self) -> u64
self
on the heap, in bytes.source§fn total_size_bytes(&self) -> u64
fn total_size_bytes(&self) -> u64
self
in bytes, accounting for both stack and heap space.source§fn stack_size_bytes(&self) -> u64
fn stack_size_bytes(&self) -> u64
self
on the stack, in bytes. Read moreimpl Copy for ViewCoordinates
impl Eq for ViewCoordinates
impl Pod for ViewCoordinates
impl StructuralPartialEq for ViewCoordinates
Auto Trait Implementations§
impl Freeze for ViewCoordinates
impl RefUnwindSafe for ViewCoordinates
impl Send for ViewCoordinates
impl Sync for ViewCoordinates
impl Unpin for ViewCoordinates
impl UnwindSafe for ViewCoordinates
Blanket Implementations§
source§impl<C> AsComponents for Cwhere
C: Component,
impl<C> AsComponents for Cwhere
C: Component,
source§fn as_component_batches(&self) -> Vec<MaybeOwnedComponentBatch<'_>>
fn as_component_batches(&self) -> Vec<MaybeOwnedComponentBatch<'_>>
ComponentBatch
s. Read moresource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self
.source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
source§impl<C> ComponentBatch for Cwhere
C: Component,
impl<C> ComponentBatch for Cwhere
C: Component,
source§fn to_arrow_list_array(&self) -> Result<ListArray<i32>, SerializationError>
fn to_arrow_list_array(&self) -> Result<ListArray<i32>, SerializationError>
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request