Struct symbolic::debuginfo::sourcebundle::SourceFileInfo[][src]

pub struct SourceFileInfo { /* fields omitted */ }

Meta data information of a file in a SourceBundle.

Implementations

impl SourceFileInfo[src]

pub fn new() -> SourceFileInfo[src]

Creates default file information.

pub fn ty(&self) -> Option<SourceFileType>[src]

Returns the type of the source file.

pub fn set_ty(&mut self, ty: SourceFileType)[src]

Sets the type of the source file.

pub fn path(&self) -> Option<&str>[src]

Returns the absolute file system path of this file.

pub fn set_path(&mut self, path: String)[src]

Sets the absolute file system path of this file.

pub fn url(&self) -> Option<&str>[src]

Returns the web URL that of this file.

pub fn set_url(&mut self, url: String)[src]

Sets the web URL of this file.

pub fn headers(&self) -> impl Iterator<Item = (&str, &str)>[src]

Iterates over all attributes represented as headers.

pub fn header(&self, header: &str) -> Option<&str>[src]

Retrieves the specified header, if it exists.

pub fn add_header(&mut self, header: String, value: String)[src]

Adds a custom attribute following header conventions.

pub fn is_empty(&self) -> bool[src]

Returns true if this instance does not carry any information.

Trait Implementations

impl Clone for SourceFileInfo[src]

impl Debug for SourceFileInfo[src]

impl Default for SourceFileInfo[src]

impl<'de> Deserialize<'de> for SourceFileInfo[src]

impl Serialize for SourceFileInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.