#[non_exhaustive]pub struct LinkGeometry {
pub rendered_byte_range: Range<usize>,
pub url: String,
}Expand description
One hyperlink in a markup layout, reported against the rendered text.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rendered_byte_range: Range<usize>Byte range of the link’s label in
LayoutGeometry::rendered_text — not in the markup source.
url: StringThe link target.
Trait Implementations§
Source§impl Clone for LinkGeometry
impl Clone for LinkGeometry
Source§impl Debug for LinkGeometry
impl Debug for LinkGeometry
Source§impl PartialEq for LinkGeometry
impl PartialEq for LinkGeometry
impl StructuralPartialEq for LinkGeometry
Auto Trait Implementations§
impl Freeze for LinkGeometry
impl RefUnwindSafe for LinkGeometry
impl Send for LinkGeometry
impl Sync for LinkGeometry
impl Unpin for LinkGeometry
impl UnsafeUnpin for LinkGeometry
impl UnwindSafe for LinkGeometry
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