pub fn from_bytes(b: &[u8]) -> Option<Uuid> {
        if b.len() != 16 {
            return None
        }

        let mut uuid = Uuid{ bytes: [0, .. 16] };
        vec::bytes::copy_memory(uuid.bytes, b);
        Some(uuid)
    }
/// Creates a UUID using the supplied bytes
///
/// # Arguments
/// * `b` An array or slice of 16 bytes
Creates a UUID using the supplied bytes
Creates a UUID using the supplied bytes
pub fn from_bytes(b: &[u8]) -> Option<Uuid> {
        if b.len() != 16 {
            return None
        }
        let mut uuid = Uuid{ bytes: [0, .. 16] };
        vec::bytes::copy_memory(uuid.bytes, b);
        Some(uuid)
    }
pub fn from_bytes ( b : & [ u8 ] ) -> Option < Uuid > { if b . len ( ) != 16 { return None } let mut uuid = Uuid { bytes : [ 0 , .. 16 ] } ; vec :: bytes :: copy_memory ( uuid . bytes , b ) ; Some ( uuid ) }
Creates a UUID using the supplied bytes
Creates a UUID using the supplied bytes
b
&[u8]
b
&[u8]