Struct cedar_policy::SourceLocation
source · pub struct SourceLocation<'a> { /* private fields */ }
Expand description
Represents a location in Cedar policy source.
Implementations§
source§impl<'a> SourceLocation<'a>
impl<'a> SourceLocation<'a>
Trait Implementations§
source§impl<'a> Clone for SourceLocation<'a>
impl<'a> Clone for SourceLocation<'a>
source§fn clone(&self) -> SourceLocation<'a>
fn clone(&self) -> SourceLocation<'a>
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<'a> Debug for SourceLocation<'a>
impl<'a> Debug for SourceLocation<'a>
source§impl<'a> From<SourceLocation<'a>> for SourceLocation<'a>
impl<'a> From<SourceLocation<'a>> for SourceLocation<'a>
source§fn from(loc: SourceLocation<'a>) -> SourceLocation<'a>
fn from(loc: SourceLocation<'a>) -> SourceLocation<'a>
Converts to this type from the input type.
source§impl<'a> PartialEq<SourceLocation<'a>> for SourceLocation<'a>
impl<'a> PartialEq<SourceLocation<'a>> for SourceLocation<'a>
source§fn eq(&self, other: &SourceLocation<'a>) -> bool
fn eq(&self, other: &SourceLocation<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for SourceLocation<'a>
impl<'a> StructuralEq for SourceLocation<'a>
impl<'a> StructuralPartialEq for SourceLocation<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SourceLocation<'a>
impl<'a> Send for SourceLocation<'a>
impl<'a> Sync for SourceLocation<'a>
impl<'a> Unpin for SourceLocation<'a>
impl<'a> UnwindSafe for SourceLocation<'a>
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.