Skip to content

Commit

Permalink
new shouldn't be pub
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshix-1 committed Sep 14, 2024
1 parent b15b530 commit 826281d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/language/word_sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct WordSequence {
impl WordSequence {
#[inline]
#[must_use]
pub const fn new(
pub(crate) const fn new(
word_length: NonZeroUsize,
data: &'static str,
padded_word_byte_count: NonZeroUsize,
Expand Down Expand Up @@ -217,4 +217,7 @@ impl WordSequence {
pub fn count(&self, string: &str) -> u8 {
u8::from(self.__contains__(string))
}

// todo: __reversed__
// https://users.rust-lang.org/t/solved-slice-protocol-and-custom-conversions-for-a-rust-object-exposed-to-python-via-pyo3/77633
}

0 comments on commit 826281d

Please sign in to comment.