Struct fuchsia_url::boot_url::BootUrl
source · pub struct BootUrl { /* private fields */ }
Expand description
Decoded representation of a fuchsia-boot URL.
fuchsia-boot:///path/to#path/to/resource
Implementations§
source§impl BootUrl
impl BootUrl
pub fn parse(input: &str) -> Result<Self, ParseError>
pub fn path(&self) -> &str
pub fn resource(&self) -> Option<&str>
pub fn root_url(&self) -> BootUrl
pub fn new_path(path: String) -> Result<Self, ParseError>
pub fn new_resource( path: String, resource: String ) -> Result<BootUrl, ParseError>
pub fn new_resource_without_variant( path: String, resource: String ) -> Result<BootUrl, ParseError>
Trait Implementations§
source§impl PartialEq for BootUrl
impl PartialEq for BootUrl
impl Eq for BootUrl
impl StructuralPartialEq for BootUrl
Auto Trait Implementations§
impl Freeze for BootUrl
impl RefUnwindSafe for BootUrl
impl Send for BootUrl
impl Sync for BootUrl
impl Unpin for BootUrl
impl UnwindSafe for BootUrl
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