pub fn from_u32(n: u32) -> Result<Codepoint, Error> {
        if n > 0x10FFFF {
            err!("{:x} is not a valid Unicode codepoint", n)
        } else {
            Ok(Codepoint(n))
        }
    }
/// Create a new codepoint from a `u32`.
///
/// If the given number is not a valid codepoint, then this returns an
/// error.
Create a new codepoint from a `u32`.
If the given number is not a valid codepoint, then this returns an
error.
Create a new codepoint from a ` u32 ` . If the given number is not a valid codepoint then this returns an error .
pub fn from_u32(n: u32) -> Result<Codepoint, Error> {
        if n > 0x10FFFF {
            err!("{:x} is not a valid Unicode codepoint", n)
        } else {
            Ok(Codepoint(n))
        }
    }
pub fn from_u32 ( n : u32 ) -> Result < Codepoint , Error > { if n > 0x10FFFF { err ! ( " " n ) } else { Ok ( Codepoint ( n ) ) } }
Create a new codepoint from a `u32`.
Create a new codepoint from a ` u32 ` .
n
u32
n
u32