pub struct Root<'b, 'a: 'b> { /* private fields */ }
Expand description
Represents the root (/
) node with specific helper methods
Implementations§
Source§impl<'b, 'a: 'b> Root<'b, 'a>
impl<'b, 'a: 'b> Root<'b, 'a>
Sourcepub fn cell_sizes(self) -> CellSizes
pub fn cell_sizes(self) -> CellSizes
Root node cell sizes
Sourcepub fn compatible(self) -> Compatible<'a>
pub fn compatible(self) -> Compatible<'a>
compatible
property
Sourcepub fn properties(self) -> impl Iterator<Item = NodeProperty<'a>> + 'b
pub fn properties(self) -> impl Iterator<Item = NodeProperty<'a>> + 'b
Returns an iterator over all of the available properties
Sourcepub fn property(self, name: &str) -> Option<NodeProperty<'a>>
pub fn property(self, name: &str) -> Option<NodeProperty<'a>>
Attempts to find the a property by its name
Trait Implementations§
impl<'b, 'a: 'b> Copy for Root<'b, 'a>
Auto Trait Implementations§
impl<'b, 'a> Freeze for Root<'b, 'a>
impl<'b, 'a> RefUnwindSafe for Root<'b, 'a>
impl<'b, 'a> Send for Root<'b, 'a>
impl<'b, 'a> Sync for Root<'b, 'a>
impl<'b, 'a> Unpin for Root<'b, 'a>
impl<'b, 'a> UnwindSafe for Root<'b, '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