pub struct ShaderFileRange {
pub file_path: PathBuf,
pub range: ShaderRange,
}Fields§
§file_path: PathBuf§range: ShaderRangeImplementations§
Source§impl ShaderFileRange
impl ShaderFileRange
pub fn from(file_path: PathBuf, range: ShaderRange) -> Self
pub fn new( file_path: PathBuf, start: ShaderPosition, end: ShaderPosition, ) -> Self
pub fn zero(file_path: PathBuf) -> Self
pub fn whole(file_path: PathBuf, content: &str) -> Self
pub fn start(&self) -> &ShaderPosition
pub fn end(&self) -> &ShaderPosition
pub fn start_as_file_position(&self) -> ShaderFilePosition
pub fn end_as_file_position(&self) -> ShaderFilePosition
pub fn contain_bounds(&self, range: &ShaderFileRange) -> bool
pub fn contain(&self, position: &ShaderFilePosition) -> bool
pub fn join(lhs: ShaderFileRange, rhs: ShaderFileRange) -> ShaderFileRange
Trait Implementations§
Source§impl Clone for ShaderFileRange
impl Clone for ShaderFileRange
Source§fn clone(&self) -> ShaderFileRange
fn clone(&self) -> ShaderFileRange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShaderFileRange
impl Debug for ShaderFileRange
Source§impl Default for ShaderFileRange
impl Default for ShaderFileRange
Source§fn default() -> ShaderFileRange
fn default() -> ShaderFileRange
Returns the “default value” for a type. Read more
Source§impl PartialEq for ShaderFileRange
impl PartialEq for ShaderFileRange
impl Eq for ShaderFileRange
impl StructuralPartialEq for ShaderFileRange
Auto Trait Implementations§
impl Freeze for ShaderFileRange
impl RefUnwindSafe for ShaderFileRange
impl Send for ShaderFileRange
impl Sync for ShaderFileRange
impl Unpin for ShaderFileRange
impl UnwindSafe for ShaderFileRange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.