Skip to main content

AbstractSignStrExt

Trait AbstractSignStrExt 

Source
pub trait AbstractSignStrExt {
    // Required methods
    fn sign_str(self) -> &'static str;
    fn sign_sn(self) -> &'static str;
    fn sign_we(self) -> &'static str;
}
Expand description

📚 【 POL】: Trait rozszerzający dla typów liczbowych, ułatwiający prezentację znaków kierunkowych. 📚 【 ENG】: Extension trait for numerical types, facilitating the presentation of directional signs.

Required Methods§

Source

fn sign_str(self) -> &'static str

📚 【 POL】: Zwraca “+” dla wartości nieujemnych oraz “-” dla ujemnych. 📚 【 ENG】: Returns “+” for non-negative values and “-” for negative ones.

Source

fn sign_sn(self) -> &'static str

📚 【 POL】: Zwraca “N” (Północ) dla wartości nieujemnych oraz “S” (Południe) dla ujemnych. 📚 【 ENG】: Returns “N” (North) for non-negative values and “S” (South) for negative ones.

Source

fn sign_we(self) -> &'static str

📚 【 POL】: Zwraca “E” (Wschód) dla wartości nieujemnych oraz “W” (Zachód) dla ujemnych. 📚 【 ENG】: Returns “E” (East) for non-negative values and “W” (West) for negative ones.

Implementations on Foreign Types§

Source§

impl AbstractSignStrExt for f64

Source§

fn sign_str(self) -> &'static str

Source§

fn sign_sn(self) -> &'static str

Source§

fn sign_we(self) -> &'static str

Source§

impl AbstractSignStrExt for i8

Source§

fn sign_str(self) -> &'static str

Source§

fn sign_sn(self) -> &'static str

Source§

fn sign_we(self) -> &'static str

Source§

impl AbstractSignStrExt for i16

Source§

fn sign_str(self) -> &'static str

Source§

fn sign_sn(self) -> &'static str

Source§

fn sign_we(self) -> &'static str

Implementors§