///
/// # Failure
///
- /// Raises the `str::not_utf8` condition if not valid UTF-8.
+ /// Fails if not valid UTF-8.
#[inline]
unsafe fn new_unchecked<T: BytesContainer>(path: T) -> Path {
let (prefix, path) = Path::normalize_(path.container_as_str().unwrap());
///
/// # Failure
///
- /// Raises the `str::not_utf8` condition if not valid UTF-8.
+ /// Fails if not valid UTF-8.
unsafe fn set_filename_unchecked<T: BytesContainer>(&mut self, filename: T) {
let filename = filename.container_as_str().unwrap();
match self.sepidx_or_prefix_len() {
/// # Failure
///
/// Raises the `null_byte` condition if the vector contains a NUL.
- /// Raises the `str::not_utf8` condition if invalid UTF-8.
+ /// Fails if invalid UTF-8.
#[inline]
pub fn new<T: BytesContainer>(path: T) -> Path {
GenericPath::new(path)
use send_str::{SendStr, SendStrOwned};
use unstable::raw::Repr;
-/*
-Section: Conditions
-*/
-
-condition! {
- pub not_utf8: (~str) -> ~str;
-}
-
/*
Section: Creating a string
*/