Struct cedar_policy_core::parser::SourceInfo
source · pub struct SourceInfo(pub Range<usize>);
Expand description
Describes where in policy source code a node in the CST or expression AST occurs.
Tuple Fields§
§0: Range<usize>
Implementations§
source§impl SourceInfo
impl SourceInfo
Trait Implementations§
source§impl Clone for SourceInfo
impl Clone for SourceInfo
source§fn clone(&self) -> SourceInfo
fn clone(&self) -> SourceInfo
Returns a copy 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 SourceInfo
impl Debug for SourceInfo
source§impl<'de> Deserialize<'de> for SourceInfo
impl<'de> Deserialize<'de> for SourceInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for SourceInfo
impl Hash for SourceInfo
source§impl PartialEq<SourceInfo> for SourceInfo
impl PartialEq<SourceInfo> for SourceInfo
source§fn eq(&self, other: &SourceInfo) -> bool
fn eq(&self, other: &SourceInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SourceInfo
impl Serialize for SourceInfo
impl Eq for SourceInfo
impl StructuralEq for SourceInfo
impl StructuralPartialEq for SourceInfo
Auto Trait Implementations§
impl RefUnwindSafe for SourceInfo
impl Send for SourceInfo
impl Sync for SourceInfo
impl Unpin for SourceInfo
impl UnwindSafe for SourceInfo
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