gitu 0.41.0

A git client inspired by Magit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::vec2::Vec2;

#[derive(Debug, Clone, Copy, PartialEq)]
pub enum Direction {
    Horizontal,
    Vertical,
}

impl Direction {
    pub(crate) fn axis(&self) -> Vec2 {
        match self {
            Direction::Horizontal => Vec2(1, 0),
            Direction::Vertical => Vec2(0, 1),
        }
    }
}