pub struct ViewRoot<'a> {
pub _tab: Table<'a>,
}Fields§
§_tab: Table<'a>Implementations§
Source§impl<'a> ViewRoot<'a>
impl<'a> ViewRoot<'a>
pub const VT_NODE_ID: VOffsetT = 4
pub const VT_CHILDREN: VOffsetT = 6
pub const VT_WIDTH: VOffsetT = 8
pub const VT_HEIGHT: VOffsetT = 10
pub const VT_BACKGROUND: VOffsetT = 12
pub const VT_DOCUMENT_LANGUAGE: VOffsetT = 14
pub const VT_TEXT_DIRECTION: VOffsetT = 16
pub const VT_SEMANTIC_NODES: VOffsetT = 18
pub const VT_METADATA: VOffsetT = 20
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr, A>, args: &'args ViewRootArgs<'args>, ) -> WIPOffset<ViewRoot<'bldr>>
pub fn node_id(&self) -> &'a str
pub fn children(&self) -> Option<Vector<'a, ForwardsUOffset<ChildNode<'a>>>>
pub fn width(&self) -> Option<Length<'a>>
pub fn height(&self) -> Option<Length<'a>>
pub fn background(&self) -> Option<&'a Color>
pub fn document_language(&self) -> Option<&'a str>
pub fn text_direction(&self) -> TextDirection
pub fn semantic_nodes( &self, ) -> Option<Vector<'a, ForwardsUOffset<SemanticNode<'a>>>>
pub fn metadata(&self) -> Option<PageMetadata<'a>>
Trait Implementations§
Source§impl Verifiable for ViewRoot<'_>
impl Verifiable for ViewRoot<'_>
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl<'a> Copy for ViewRoot<'a>
impl<'a> StructuralPartialEq for ViewRoot<'a>
Auto Trait Implementations§
impl<'a> Freeze for ViewRoot<'a>
impl<'a> RefUnwindSafe for ViewRoot<'a>
impl<'a> Send for ViewRoot<'a>
impl<'a> Sync for ViewRoot<'a>
impl<'a> Unpin for ViewRoot<'a>
impl<'a> UnsafeUnpin for ViewRoot<'a>
impl<'a> UnwindSafe for ViewRoot<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more