Struct sway_parse::brackets::Parens
source · [−]pub struct Parens<T> { /* private fields */ }
Implementations
sourceimpl<T> Parens<T> where
T: ParseToEnd,
impl<T> Parens<T> where
T: ParseToEnd,
sourceimpl<T> Parens<T> where
T: Parse,
impl<T> Parens<T> where
T: Parse,
pub fn parse_all_inner(
parser: &mut Parser<'_, '_>,
on_error: impl FnOnce(Parser<'_, '_>) -> ErrorEmitted
) -> ParseResult<Parens<T>>
sourceimpl<T> Parens<T> where
T: Parse,
impl<T> Parens<T> where
T: Parse,
pub fn try_parse_all_inner(
parser: &mut Parser<'_, '_>,
on_error: impl FnOnce(Parser<'_, '_>) -> ErrorEmitted
) -> ParseResult<Option<Parens<T>>>
Trait Implementations
sourceimpl<T> Parse for Parens<T> where
T: ParseToEnd,
impl<T> Parse for Parens<T> where
T: ParseToEnd,
fn parse(parser: &mut Parser<'_, '_>) -> ParseResult<Parens<T>>
Auto Trait Implementations
impl<T> RefUnwindSafe for Parens<T> where
T: RefUnwindSafe,
impl<T> Send for Parens<T> where
T: Send,
impl<T> Sync for Parens<T> where
T: Sync,
impl<T> Unpin for Parens<T> where
T: Unpin,
impl<T> UnwindSafe for Parens<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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more