Skip to content

Commit

Permalink
[utf-16] Declare TextSource as pub trait.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfkthame committed Oct 16, 2023
1 parent d1a62a3 commit 8d372d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ use crate::BidiClass::*;

/// Trait that abstracts over a text source for use by the bidi algorithms.
/// We implement this for str (UTF-8) and for [u16] (UTF-16, native-endian).
trait TextSource {
pub trait TextSource {
/// Return the length of the text in code units.
fn len(&self) -> usize;

Expand Down

0 comments on commit 8d372d6

Please sign in to comment.