Struct rdftk_iri::Fragment [−][src]
pub struct Fragment(_);
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
impl StructuralEq for Fragment
[src]
impl StructuralEq for Fragment
[src]impl StructuralPartialEq for Fragment
[src]
impl StructuralPartialEq for Fragment
[src]Auto Trait Implementations
impl RefUnwindSafe for Fragment
impl RefUnwindSafe for Fragment
impl UnwindSafe for Fragment
impl UnwindSafe for Fragment