pub fn default_scene<'a>(&'a self) -> Option<SceneRef<'a>> {
        let json = self.json();
        let scene_id = json.get("scene")
            .and_then(|v| v.as_u64())
            .unwrap_or(u64::MAX);

        if scene_id == u64::MAX {
            return None;
        }

        let nodes = json.get("nodes").unwrap().as_array().unwrap();
        let scene = json.get("scenes").unwrap().as_array().unwrap();

        scene
            .get(scene_id as usize)
            .and_then(|v| v.as_object())
            .map(|scene| SceneRef { nodes, scene } )
    }
/// Return the name of the default scene if there is one
Return the name of the default scene if there is one
Return the name of the default scene if there is one
pub fn default_scene<'a>(&'a self) -> Option<SceneRef<'a>> {
        let json = self.json();
        let scene_id = json.get("scene")
            .and_then(|v| v.as_u64())
            .unwrap_or(u64::MAX);
        if scene_id == u64::MAX {
            return None;
        }
        let nodes = json.get("nodes").unwrap().as_array().unwrap();
        let scene = json.get("scenes").unwrap().as_array().unwrap();
        scene
            .get(scene_id as usize)
            .and_then(|v| v.as_object())
            .map(|scene| SceneRef { nodes, scene } )
    }
pub fn default_scene < ' a > ( & ' a self ) -> Option < SceneRef < ' a > > { let json = self . json ( ) ; let scene_id = json . get ( " " ) . and_then ( | v | v . as_u64 ( ) ) . unwrap_or ( u64 :: MAX ) ; if scene_id == u64 :: MAX { return None ; } let nodes = json . get ( " " ) . unwrap ( ) . as_array ( ) . unwrap ( ) ; let scene = json . get ( " " ) . unwrap ( ) . as_array ( ) . unwrap ( ) ; scene . get ( scene_id as usize ) . and_then ( | v | v . as_object ( ) ) . map ( | scene | SceneRef { nodes , scene } ) }
Return the name of the default scene if there is one
Return the name of the default scene if there is one
&'a self