pub fn as_u32(&self) -> crate::Result<u32> {
        match &self {
            Self::I32(v) => Ok(*v as u32),
            Self::U32(v) => Ok(*v),
            Self::F64(v) => Ok(*v as u32),
            Self::Bool(v) => Ok(*v as u32),
            Self::Str(v) => match v.parse::<u32>() {
                Ok(u) => Ok(u),
                Err(e) => Err(error::parse_value(e.into())),
            },
            _ => Err(error::unimplement("can not convert to u32"))
        }
    }
/// If Value can parse to u32, returns an u32. Returns Err otherwise.
If Value can parse to u32, returns an u32. Returns Err otherwise.
If Value can parse to u32 returns an u32 . Returns Err otherwise .
pub fn as_u32(&self) -> crate::Result<u32> {
        match &self {
            Self::I32(v) => Ok(*v as u32),
            Self::U32(v) => Ok(*v),
            Self::F64(v) => Ok(*v as u32),
            Self::Bool(v) => Ok(*v as u32),
            Self::Str(v) => match v.parse::<u32>() {
                Ok(u) => Ok(u),
                Err(e) => Err(error::parse_value(e.into())),
            },
            _ => Err(error::unimplement("can not convert to u32"))
        }
    }
pub fn as_u32 ( & self ) -> crate :: Result < u32 > { match & self { Self :: I32 ( v ) => Ok ( * v as u32 ) , Self :: U32 ( v ) => Ok ( * v ) , Self :: F64 ( v ) => Ok ( * v as u32 ) , Self :: Bool ( v ) => Ok ( * v as u32 ) , Self :: Str ( v ) => match v . parse :: < u32 > ( ) { Ok ( u ) => Ok ( u ) , Err ( e ) => Err ( error :: parse_value ( e . into ( ) ) ) , } , _ => Err ( error :: unimplement ( " " ) ) } }
If Value can parse to u32, returns an u32.
If Value can parse to u32 returns an u32 .
&self