pub unsafe fn from_str_unchecked(s: &str) -> Self {
        let len = s.len();
        let mut buf = [0; 26];
        buf[..len].copy_from_slice(s.as_bytes());

        Self(buf, len)
    }
/// Creates a new [`IdString`] wihtout checking that
/// the contents are valid id characters, and the whole string
/// is of the right length.
/// # Safety
/// s should have passed [Self::check]
Creates a new [`IdString`] wihtout checking that
the contents are valid id characters, and the whole string
is of the right length.
Creates a new [ ` IdString ` ] wihtout checking that the contents are valid id characters and the whole string is of the right length .
pub unsafe fn from_str_unchecked(s: &str) -> Self {
        let len = s.len();
        let mut buf = [0; 26];
        buf[..len].copy_from_slice(s.as_bytes());
        Self(buf, len)
    }
pub unsafe fn from_str_unchecked ( s : & str ) -> Self { let len = s . len ( ) ; let mut buf = [ 0 ; 26 ] ; buf [ .. len ] . copy_from_slice ( s . as_bytes ( ) ) ; Self ( buf , len ) }
Creates a new [`IdString`] wihtout checking that
the contents are valid id characters, and the whole string
is of the right length.
Creates a new [ ` IdString ` ] wihtout checking that the contents are valid id characters and the whole string is of the right length .
s
&str
s
&str
safety
s should have passed [Self::check]
s should have passed [ Self :: check ]