Struct sway_parse::brackets::Braces
source · [−]pub struct Braces<T> { /* private fields */ }
Implementations
sourceimpl<T> Braces<T>
impl<T> Braces<T>
pub fn new<'a>(inner: T, span: Span, _consumed: ParserConsumed<'a>) -> Braces<T>
pub fn get(&self) -> &T
pub fn into_inner(self) -> T
sourceimpl<T> Braces<T> where
T: ParseToEnd,
impl<T> Braces<T> where
T: ParseToEnd,
sourceimpl<T> Braces<T> where
T: Parse,
impl<T> Braces<T> where
T: Parse,
pub fn parse_all_inner(
parser: &mut Parser<'_, '_>,
on_error: impl FnOnce(Parser<'_, '_>) -> ErrorEmitted
) -> ParseResult<Braces<T>>
sourceimpl<T> Braces<T> where
T: Parse,
impl<T> Braces<T> where
T: Parse,
pub fn try_parse_all_inner(
parser: &mut Parser<'_, '_>,
on_error: impl FnOnce(Parser<'_, '_>) -> ErrorEmitted
) -> ParseResult<Option<Braces<T>>>
Trait Implementations
sourceimpl<T> Parse for Braces<T> where
T: ParseToEnd,
impl<T> Parse for Braces<T> where
T: ParseToEnd,
fn parse(parser: &mut Parser<'_, '_>) -> ParseResult<Braces<T>>
Auto Trait Implementations
impl<T> RefUnwindSafe for Braces<T> where
T: RefUnwindSafe,
impl<T> Send for Braces<T> where
T: Send,
impl<T> Sync for Braces<T> where
T: Sync,
impl<T> Unpin for Braces<T> where
T: Unpin,
impl<T> UnwindSafe for Braces<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