Function std::path::is_separator [] [src]

pub fn is_separator(c: char) -> bool
1.0.0

Determines whether the character is one of the permitted path separators for the current platform.

Examples

fn main() { use std::path; assert!(path::is_separator('/')); assert!(!path::is_separator('❤')); }
use std::path;

assert!(path::is_separator('/'));
assert!(!path::is_separator('❤'));