pub struct Links { /* private fields */ }Expand description
A shared handle to the links service, from crate::BuildCx::links or
crate::Ui::links. An address that starts with # scrolls to the anchor of that
name (crate::BuildCx::anchor) instead of leaving the app.
use ravenrs_widgets::Links;
let links = Links::default();
links.open("https://example.com/docs");
assert_eq!(links.opened(), ["https://example.com/docs"]);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Links
impl !Send for Links
impl !Sync for Links
impl !UnwindSafe for Links
impl Freeze for Links
impl Unpin for Links
impl UnsafeUnpin for Links
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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