Trait enter::Enter [] [src]

pub trait Enter {
    fn enter(&self) -> &str;
}

Required Methods

Implementations on Foreign Types

impl Enter for str
[src]

[src]

trimming corresponding newline characters of running OS's stdin.

example(s)

use enter::{ Enter, ENTER };
 
let mut str_with_enter = "Hello, World!".to_string();
str_with_enter.push_str(ENTER);
assert_eq!(str_with_enter.enter(), "Hello, World!");

Implementors