[][src]Struct root_io::RootFile

pub struct RootFile { /* fields omitted */ }

RootFile wraps the most basic information of a ROOT file.

Methods

impl RootFile[src]

pub async fn new<S: Into<Source>>(source: S) -> Result<Self, Error>[src]

Open a new ROOT file either from a Url, or from a Path (not available on wasm32).

pub async fn streamers<'_>(&'_ self) -> Result<Vec<TStreamerInfo>, Error>[src]

Return all TSreamerInfo for the data in this file

pub fn items(&self) -> &[FileItem][src]

Slice of the items contained in this file

pub async fn streamer_info_as_yaml<'_, '_, W: Write>(
    &'_ self,
    s: &'_ mut W
) -> Result<(), Error>
[src]

Translate the streamer info of this file to a YAML file

pub async fn streamer_info_as_rust<'_, '_, W: Write>(
    &'_ self,
    s: &'_ mut W
) -> Result<(), Error>
[src]

Generate Rust code from the streamer info of this file

Trait Implementations

impl Debug for RootFile[src]

Auto Trait Implementations

impl !RefUnwindSafe for RootFile

impl Send for RootFile

impl Sync for RootFile

impl Unpin for RootFile

impl !UnwindSafe for RootFile

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> From<T> for T[src]

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

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.