Struct rdftk_iri::Fragment [−][src]
pub struct Fragment(_);
Expand description
The fragment component of an IRI
contains a fragment identifier providing direction to a
secondary resource, such as a section heading in an article identified by the remainder of the
URI. When the primary resource is an HTML document, the fragment is often an id attribute of a
specific element, and web browsers will scroll this element into view.
Example
use rdftk_iri::Fragment; use std::str::FromStr; let heading = Fragment::from_str("heading-one").unwrap(); println!("'{}'", heading); // prints '#heading-one'
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Fragment
impl UnwindSafe for Fragment
Blanket Implementations
Mutably borrows from an owned value. Read more