[−][src]Struct rust_warrior::profile::Profile
The player profile is the player's name and the current level. This is saved in .profile at the root of the player's project directory.
Fields
name: String
directory: String
level: usize
Methods
impl Profile
[src]
pub fn new(name: String) -> Profile
[src]
create new Profile for player with given name
pub fn from_toml(contents: &str) -> Profile
[src]
load Profile from base64 encoded TOML String
pub fn to_toml(&self) -> String
[src]
convert Profile to base64 encoded TOML String
Auto Trait Implementations
impl Sync for Profile
impl Unpin for Profile
impl Send for Profile
impl UnwindSafe for Profile
impl RefUnwindSafe for Profile
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,