Struct ::exo::Ident

Overview

Ident type which identifies an entity and ony allows a limited formating

Methods

fn new(inp: String) -> Ident

Creates a new Ident from a String input. Idents allow only small letters a-z, numbers 0-9 and underscores '_'. Different characters will be transformed or removed.

Return the Ident as String

fn try_from(inp) -> Result

Tries to creates a new Ident from a generic value.

Protocols

protocol partial_eq
if value == b { }

Allows for partial equality operations to work.

protocol string_debug
println("{:?}", value)

Allows the value to be debug printed.

protocol string_display
println("{}", value)

Allows the value to be display printed.