pub struct ShaderRange {
pub start: ShaderPosition,
pub end: ShaderPosition,
}Fields§
§start: ShaderPosition§end: ShaderPositionImplementations§
Source§impl ShaderRange
impl ShaderRange
pub fn new(start: ShaderPosition, end: ShaderPosition) -> Self
pub fn zero() -> Self
pub fn into_file(self, file_path: PathBuf) -> ShaderFileRange
pub fn clone_into_file(&self, file_path: PathBuf) -> ShaderFileRange
pub fn whole(content: &str) -> Self
pub fn contain_bounds(&self, range: &ShaderRange) -> bool
pub fn contain(&self, position: &ShaderPosition) -> bool
pub fn join(lhs: ShaderRange, rhs: ShaderRange) -> ShaderRange
Trait Implementations§
Source§impl Clone for ShaderRange
impl Clone for ShaderRange
Source§fn clone(&self) -> ShaderRange
fn clone(&self) -> ShaderRange
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 ShaderRange
impl Debug for ShaderRange
Source§impl Default for ShaderRange
impl Default for ShaderRange
Source§fn default() -> ShaderRange
fn default() -> ShaderRange
Returns the “default value” for a type. Read more
Source§impl From<Range> for ShaderRange
impl From<Range> for ShaderRange
Source§impl PartialEq for ShaderRange
impl PartialEq for ShaderRange
impl Eq for ShaderRange
impl StructuralPartialEq for ShaderRange
Auto Trait Implementations§
impl Freeze for ShaderRange
impl RefUnwindSafe for ShaderRange
impl Send for ShaderRange
impl Sync for ShaderRange
impl Unpin for ShaderRange
impl UnwindSafe for ShaderRange
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.