Docs.rs
simple-term-renderer-0.5.0
simple-term-renderer 0.5.0
Docs.rs crate page
Links
Repository
crates.io
Source
Owners
Khusheete
Dependencies
image ^0.24.2
normal
libc ^0.2
normal
palette ^0.7.6
normal
termios ^0.3
normal
Versions
14.1%
of the crate is documented
Platform
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
simple_
term_
renderer
0.5.0
Vec2f
Aliased Type
Fields
x
y
Associated Constants
ONE
UNIT_X
UNIT_Y
ZERO
Methods
length
Trait Implementations
Eq
From<Vector2<i32>>
In simple_
term_
renderer::
math
simple_term_renderer
::
math
Type Alias
Vec2f
Copy item path
Source
pub type Vec2f =
Vector2
<
f32
>;
Aliased Type
§
pub struct Vec2f { pub x:
f32
, pub y:
f32
, }
Fields
§
§
x:
f32
§
y:
f32
Implementations
§
Source
§
impl
Vec2f
Source
pub const
ZERO
:
Vec2f
Source
pub const
UNIT_X
:
Vec2f
Source
pub const
UNIT_Y
:
Vec2f
Source
pub const
ONE
:
Vec2f
Source
pub fn
length
(&self) ->
f32
Trait Implementations
§
Source
§
impl
From
<
Vector2
<
i32
>> for
Vec2f
Source
§
fn
from
(value:
Vec2
) -> Self
Converts to this type from the input type.
Source
§
impl
Eq
for
Vec2f