pub struct AstVector { /* private fields */ }Expand description
Vector of Z3 AST nodes.
This wraps a Z3-ref-counted vector of asts. This type exists
mainly as a high-level compatibility layer for these types from Rust.
As this type wraps heterogenous asts, it is analagous to Vec<Dynamic>.
Most users will usually be better off using a Vec; this type primarily exists as a compatibility shim.
Many standard rust collection and iteration traits are implemented on it for convenience.
Implementations§
Source§impl AstVector
impl AstVector
Sourcepub fn resize(&self, new_size: usize)
pub fn resize(&self, new_size: usize)
Resize the vector to the specified size.
New elements (if any) are uninitialized.
Sourcepub fn translate(&self, target_ctx: &Context) -> AstVector
pub fn translate(&self, target_ctx: &Context) -> AstVector
Translate the AST vector to another context.
Sourcepub fn iter(&self) -> AstVectorIter<'_> ⓘ
pub fn iter(&self) -> AstVectorIter<'_> ⓘ
Return a borrowing iterator over the elements.
Trait Implementations§
Source§impl<T: Ast> From<&[T]> for AstVector
Build an AstVector from a borrowed slice, avoiding clones.
impl<T: Ast> From<&[T]> for AstVector
Build an AstVector from a borrowed slice, avoiding clones.
Source§impl<T: Ast> FromIterator<T> for AstVector
impl<T: Ast> FromIterator<T> for AstVector
Source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl<'a> IntoIterator for &'a AstVector
impl<'a> IntoIterator for &'a AstVector
Source§impl IntoIterator for AstVector
impl IntoIterator for AstVector
Auto Trait Implementations§
impl Freeze for AstVector
impl RefUnwindSafe for AstVector
impl !Send for AstVector
impl !Sync for AstVector
impl Unpin for AstVector
impl UnsafeUnpin for AstVector
impl UnwindSafe for AstVector
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