Struct prql_compiler::Declarations
source · [−]pub struct Declarations(pub Vec<(Declaration, Option<Span>)>);
Tuple Fields
0: Vec<(Declaration, Option<Span>)>
Implementations
sourceimpl Declarations
impl Declarations
pub fn get(&self, id: usize) -> &Declaration
pub fn push(&mut self, dec: Declaration, span: Option<Span>) -> usize
Trait Implementations
sourceimpl Clone for Declarations
impl Clone for Declarations
sourcefn clone(&self) -> Declarations
fn clone(&self) -> Declarations
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Declarations
impl Debug for Declarations
sourceimpl Default for Declarations
impl Default for Declarations
sourcefn default() -> Declarations
fn default() -> Declarations
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Declarations
impl<'de> Deserialize<'de> for Declarations
sourcefn 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
sourceimpl Serialize for Declarations
impl Serialize for Declarations
Auto Trait Implementations
impl RefUnwindSafe for Declarations
impl Send for Declarations
impl Sync for Declarations
impl Unpin for Declarations
impl UnwindSafe for Declarations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more