You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's because there are 3 inputs and doing A: From<(&Block, BlockId, usize)> is confusing and we won't know what the usize is for.
An alternative would be to have:
/// Parameters for constructing an [`Anchor`].pubstructAnchorParams<'b>{pubblock:&'bBlock,pubblock_id:BlockId,pubtx_pos:usize,}fnsome_method<A:Anchor + From<AnchorParams>>(){todo!()}
What do you think? (AnchorParams will be nicely documented of course!)
The text was updated successfully, but these errors were encountered:
I think the "alternative" is what I was suggesting. AnchorParams looks like a worse named version of BlockPosition which is what I suggested originally.
Originally posted by @LLFourn in #1172 (comment)
@evanlinjin's response:
The text was updated successfully, but these errors were encountered: