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
BoundedVec is a structure that represents a (arr, len) pair. StringBody::new and SubString::new should accept BoundedVec as a parameter (or implement From)
Happy Case
lethaystack_text = BoundedVec::from_array("the quick brown fox jumped over the lazy dog".as_bytes());
letneedle_text = BoundedVec::from_array(" the lazy dog".as_bytes());
lethaystack: StringBody64 = StringBody::new(haystack_text);
letneedle: SubString32 = SubString::new(needle_text);
// or evenlethaystack: StringBody64 = haystack_text.into();
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
Nice-to-have
Blocker Context
No response
Would you like to submit a PR for this Issue?
Maybe
Support Needs
No response
The text was updated successfully, but these errors were encountered:
Problem
BoundedVec
is a structure that represents a(arr, len)
pair.StringBody::new
andSubString::new
should acceptBoundedVec
as a parameter (or implementFrom
)Happy Case
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
Nice-to-have
Blocker Context
No response
Would you like to submit a PR for this Issue?
Maybe
Support Needs
No response
The text was updated successfully, but these errors were encountered: