Struct root_io::RootFile[][src]

pub struct RootFile { /* fields omitted */ }

RootFile wraps the most basic information of a ROOT file.

Implementations

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 get_streamer_context(&self) -> Result<Context, Error>[src]

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

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Slice of the items contained in this file

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

Translate the streamer info of this file to a YAML 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

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

impl<T> Instrument 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.