Type Alias Ptr

Source
pub type Ptr<A> = Rc<A>;
Expand description

A pointer type for use in TeX - this is just an alias for Rc, but may by replaced by Arc in the future.

Aliased Type§

struct Ptr<A> { /* private fields */ }

Trait Implementations§

Source§

impl<Char: CharType> File<Char> for Ptr<PhysicalFile<Char>>

Source§

fn path(&self) -> &PathBuf

Source§

fn exists(&self) -> bool

Source§

fn content_string(&self) -> Vec<u8>

Source§

fn open_out(&self)

Source§

fn close_in(&self)

Source§

fn close_out(&self)

Source§

fn eof(&self) -> bool

Source§

fn open_in(&self)

Source§

fn write(&self, _: &str)

Source§

fn read<T: Token, S: State<T>>( &self, _: &S, ) -> Result<Vec<T>, Box<dyn TeXError<T>>>

Source§

impl<Char: CharType> File<Char> for Ptr<VirtualFile<Char>>

Source§

fn path(&self) -> &PathBuf

Source§

fn exists(&self) -> bool

Source§

fn content_string(&self) -> Vec<u8>

Source§

fn close_out(&self)

Source§

fn open_out(&self)

Source§

fn open_in(&self)

Source§

fn close_in(&self)

Source§

fn eof(&self) -> bool

Source§

fn read<T: Token<Char = Char>, S: State<T>>( &self, state: &S, ) -> Result<Vec<T>, Box<dyn TeXError<T>>>

Source§

fn write(&self, string: &str)