pub struct DescriptorView<'a> {
pub props: &'a Props,
pub classes: &'a Vec<String>,
pub style: &'a Style,
pub role: Option<Role>,
pub name: &'a Option<String>,
pub focus: FocusMode,
pub item: Option<ItemPosition>,
pub options: &'a Options,
pub semantics: &'a Option<Box<Semantics>>,
}Fields§
§props: &'a Props§classes: &'a Vec<String>§style: &'a Style§role: Option<Role>§name: &'a Option<String>§focus: FocusMode§item: Option<ItemPosition>§options: &'a Options§semantics: &'a Option<Box<Semantics>>Implementations§
Source§impl<'a> DescriptorView<'a>
impl<'a> DescriptorView<'a>
pub fn view(&self) -> Self
Sourcepub fn to_owned(self) -> Descriptor
pub fn to_owned(self) -> Descriptor
Explicit full snapshot for an owned declaration, never a patch read.
pub fn semantic_id(&self) -> Option<&'a SemanticId>
pub fn activation_enabled(&self) -> bool
pub fn readonly(&self) -> bool
pub fn field_part(&self) -> Option<FieldPart>
pub fn document_part(&self) -> Option<DocumentPart>
Sourcepub fn effective_role(&self) -> Option<Role>
pub fn effective_role(&self) -> Option<Role>
Naming an otherwise generic View creates an accessible group; unnamed generic Views remain only layout boxes. Explicit structural roles win.
pub fn validate(&self) -> Result<(), Error>
Trait Implementations§
Source§impl<'a> Clone for DescriptorView<'a>
impl<'a> Clone for DescriptorView<'a>
impl<'a> Copy for DescriptorView<'a>
Source§impl<'a> Debug for DescriptorView<'a>
impl<'a> Debug for DescriptorView<'a>
Source§impl<'a> From<&'a Box<Descriptor>> for DescriptorView<'a>
impl<'a> From<&'a Box<Descriptor>> for DescriptorView<'a>
Source§fn from(d: &'a Box<Descriptor>) -> Self
fn from(d: &'a Box<Descriptor>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a Descriptor> for DescriptorView<'a>
impl<'a> From<&'a Descriptor> for DescriptorView<'a>
Source§fn from(d: &'a Descriptor) -> Self
fn from(d: &'a Descriptor) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a LiveDescriptor> for DescriptorView<'a>
impl<'a> From<&'a LiveDescriptor> for DescriptorView<'a>
Source§fn from(d: &'a LiveDescriptor) -> Self
fn from(d: &'a LiveDescriptor) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&DescriptorView<'a>> for DescriptorView<'a>
impl<'a> From<&DescriptorView<'a>> for DescriptorView<'a>
Source§fn from(d: &DescriptorView<'a>) -> Self
fn from(d: &DescriptorView<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for DescriptorView<'a>
impl<'a> PartialEq for DescriptorView<'a>
Source§impl PartialEq<Descriptor> for DescriptorView<'_>
impl PartialEq<Descriptor> for DescriptorView<'_>
Source§impl PartialEq<DescriptorView<'_>> for Descriptor
impl PartialEq<DescriptorView<'_>> for Descriptor
impl<'a> StructuralPartialEq for DescriptorView<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DescriptorView<'a>
impl<'a> !Send for DescriptorView<'a>
impl<'a> !Sync for DescriptorView<'a>
impl<'a> !UnwindSafe for DescriptorView<'a>
impl<'a> Forget for DescriptorView<'a>
impl<'a> Freeze for DescriptorView<'a>
impl<'a> Unpin for DescriptorView<'a>
impl<'a> UnsafeUnpin for DescriptorView<'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