Struct vhdl_parser::Source
source · pub struct Source { /* private fields */ }
Implementations
sourceimpl Source
impl Source
pub fn inline(
file_name: impl Into<String>,
contents: Arc<Latin1String>
) -> Source
pub fn from_file(file_name: impl Into<String>) -> Source
pub fn inline_utf8(file_name: impl Into<String>, contents: &str) -> Result<Self>
pub fn contents(&self) -> Result<Arc<Latin1String>>
pub fn file_name(&self) -> &str
pub fn pos(&self, start: usize, length: usize) -> SrcPos
Trait Implementations
impl Eq for Source
Auto Trait Implementations
impl !RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl !UnwindSafe for Source
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more