You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: compass.rs
    path of file: ./repos/veloren/common/src/comp
    
    the code of the file until where you have to start completion: use common_i18n::Content;
use vek::Vec2;
// TODO: Move this to common/src/, it's not a component

/// Cardinal directions
pub enum Direction {
    Nort
    
    pub fn from_length(length: i32) -> Self {
        match length {
            0..=100 => Distance::NextTo,
            101..=500 => Distance::Near,
            501..=3000 => Distance::Ahead,
            3001..=10000 => Distance::Far,
            _ => Distance::VeryFar,
        }
    }