pub struct FocusScope { /* private fields */ }Expand description
A named collection of focus targets.
Implementations§
Source§impl FocusScope
impl FocusScope
pub fn new(targets: Vec<FocusTarget>) -> Self
pub fn targets(&self) -> &[FocusTarget]
pub fn contains(&self, target: &FocusTarget) -> bool
Trait Implementations§
Source§impl Clone for FocusScope
impl Clone for FocusScope
Source§fn clone(&self) -> FocusScope
fn clone(&self) -> FocusScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FocusScope
impl Debug for FocusScope
Source§impl Default for FocusScope
impl Default for FocusScope
Source§fn default() -> FocusScope
fn default() -> FocusScope
Returns the “default value” for a type. Read more
Source§impl PartialEq for FocusScope
impl PartialEq for FocusScope
Source§fn eq(&self, other: &FocusScope) -> bool
fn eq(&self, other: &FocusScope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FocusScope
impl StructuralPartialEq for FocusScope
Auto Trait Implementations§
impl Freeze for FocusScope
impl RefUnwindSafe for FocusScope
impl Send for FocusScope
impl Sync for FocusScope
impl Unpin for FocusScope
impl UnsafeUnpin for FocusScope
impl UnwindSafe for FocusScope
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