Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.
Discussion options

You must be logged in to vote

Oh interesting, if removing it is a good idea, then perhaps it is worth doing.
I was able to figure out how to satisfy the clone requirement:

pub type MapFromTuple<A, N> = Ext<MapFromTuple_<A, N>>;

pub struct MapFromTuple_<A, N> {
    pub(crate) parser: A,
    _new: EmptyPhantom<N>,
}

impl<A: Copy, N> Copy for MapFromTuple_<A, N> {}
impl<A: Clone, N> Clone for MapFromTuple_<A, N> {
    fn clone(&self) -> Self {
        Self {
            parser: self.parser.clone(),
            _new: self._new.clone(),
        }
    }
}

impl<'src, I, O, E, A, N> ExtParser<'src, I, N, E> for MapFromTuple_<A, N>
where
    I: Input<'src>,
    E: ParserExtra<'src, I>,
    A: Parser<'src, I, O, E>,
    N: F…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@zesterer
Comment options

@MasterTemple
Comment options

Answer selected by MasterTemple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants