Write documentation for iced_core

This commit is contained in:
Héctor Ramón Jiménez 2019-11-18 07:16:19 +01:00
parent 63dbf078fe
commit d3553adf27
16 changed files with 216 additions and 44 deletions

View file

@ -1,7 +1,14 @@
/// A 2D vector.
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Vector<T = f32> {
/// The X component of the [`Vector`]
///
/// [`Vector`]: struct.Vector.html
pub x: T,
/// The Y component of the [`Vector`]
///
/// [`Vector`]: struct.Vector.html
pub y: T,
}