pub struct SchemaFile<'a> { /* private fields */ }Implementations§
Source§impl<'a> SchemaFile<'a>
impl<'a> SchemaFile<'a>
pub fn new<N, P, S>( name: &'a N, path: &'a P, source: Result<&'a S, &'a Error>, ) -> Self
pub fn with_source<N, P, S>(name: &'a N, path: &'a P, source: &'a S) -> Self
pub fn with_error<N, P>(name: &'a N, path: &'a P, err: &'a Error) -> Self
pub fn name(&self) -> &'a str
pub fn path(&self) -> &'a str
pub fn source(&self) -> Result<&'a str, &'a Error>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SchemaFile<'a>
impl<'a> !UnwindSafe for SchemaFile<'a>
impl<'a> Freeze for SchemaFile<'a>
impl<'a> Send for SchemaFile<'a>
impl<'a> Sync for SchemaFile<'a>
impl<'a> Unpin for SchemaFile<'a>
impl<'a> UnsafeUnpin for SchemaFile<'a>
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