Struct sway_ast::brackets::SquareBrackets
source · [−]pub struct SquareBrackets<T> {
pub inner: T,
pub span: Span,
}
Fields
inner: T
span: Span
Implementations
sourceimpl<T> SquareBrackets<T>
impl<T> SquareBrackets<T>
pub fn new<'a>(inner: T, span: Span) -> SquareBrackets<T>
pub fn get(&self) -> &T
pub fn into_inner(self) -> T
Trait Implementations
sourceimpl<T: Clone> Clone for SquareBrackets<T>
impl<T: Clone> Clone for SquareBrackets<T>
sourcefn clone(&self) -> SquareBrackets<T>
fn clone(&self) -> SquareBrackets<T>
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<T: Debug> Debug for SquareBrackets<T>
impl<T: Debug> Debug for SquareBrackets<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for SquareBrackets<T> where
T: RefUnwindSafe,
impl<T> Send for SquareBrackets<T> where
T: Send,
impl<T> Sync for SquareBrackets<T> where
T: Sync,
impl<T> Unpin for SquareBrackets<T> where
T: Unpin,
impl<T> UnwindSafe for SquareBrackets<T> where
T: UnwindSafe,
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