pub struct PreparedGlm {
pub source: Source,
/* private fields */
}Expand description
Preprocessed text, distinct from the retained original project. This is not an electrically interpreted network and must never replace source retention.
Fields§
§source: SourceImplementations§
Source§impl PreparedGlm
impl PreparedGlm
pub fn text(&self) -> &str
pub fn origins(&self) -> &[ExpansionOrigin]
pub fn dependencies(&self) -> &[SourceId]
Sourcepub fn original_spans(&self, range: Range<usize>) -> Vec<SourceSpan>
pub fn original_spans(&self, range: Range<usize>) -> Vec<SourceSpan>
Translate an expanded byte range to its original source segments.
Substitution segments point to the complete ${name} reference.
Empty or out-of-bounds ranges return an empty vector.
Trait Implementations§
Source§impl Clone for PreparedGlm
impl Clone for PreparedGlm
Source§fn clone(&self) -> PreparedGlm
fn clone(&self) -> PreparedGlm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PreparedGlm
impl RefUnwindSafe for PreparedGlm
impl Send for PreparedGlm
impl Sync for PreparedGlm
impl Unpin for PreparedGlm
impl UnsafeUnpin for PreparedGlm
impl UnwindSafe for PreparedGlm
Blanket Implementations§
impl<T> Allocation for T
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