(&self)
| 1474 | } |
| 1475 | |
| 1476 | fn root_component(&self) -> Option<Ref<Component>> { |
| 1477 | let result = unsafe { BNGetRootComponent(self.as_ref().handle) }; |
| 1478 | NonNull::new(result).map(|h| unsafe { Component::ref_from_raw(h) }) |
| 1479 | } |
| 1480 | |
| 1481 | fn component_by_path<P: BnStrCompatible>(&self, path: P) -> Option<Ref<Component>> { |
| 1482 | let path = path.into_bytes_with_nul(); |