Struct vhdl_lang::Source [−][src]
A thread-safe reference to a source file. Multiple objects of this type can refer to the same source.
Implementations
impl Source
[src]
pub fn inline(file_name: &Path, contents: &str) -> Source
[src]
Creates a source from a (virtual) name and in-memory contents.
Note: For differing values of contents
, the value of file_name
must differ as well.
pub fn from_latin1_file(file_name: &Path) -> Result<Source>
[src]
pub fn contents(&self) -> RwLockReadGuard<'_, Contents>
[src]
pub fn file_name(&self) -> &Path
[src]
pub fn pos(&self, start: Position, end: Position) -> SrcPos
[src]
pub fn change(&self, range: Option<&Range>, content: &str)
[src]
Trait Implementations
impl Clone for Source
[src]
impl Debug for Source
[src]
impl Eq for Source
[src]
impl Hash for Source
[src]
fn hash<H: Hasher>(&self, hasher: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Source> for Source
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,