Trait godot::prelude::ToVector

pub trait ToVector: Sized {
    type Output;

    // Required method
    fn to_vector(self) -> Self::Output;
}
Expand description

Trait that allows conversion from tuples to vectors.

Is implemented instead of From/Into because it provides type inference.

Required Associated Types§

type Output

Required Methods§

fn to_vector(self) -> Self::Output

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl ToVector for (f32, f32)

§

impl ToVector for (f32, f32, f32)

§

impl ToVector for (f32, f32, f32, f32)

§

impl ToVector for (i32, i32)

§

impl ToVector for (i32, i32, i32)

§

impl ToVector for (i32, i32, i32, i32)

Implementors§