summaryrefslogtreecommitdiffstats
path: root/svgbob/src/buffer/property_buffer/property.rs
diff options
context:
space:
mode:
Diffstat (limited to 'svgbob/src/buffer/property_buffer/property.rs')
-rw-r--r--svgbob/src/buffer/property_buffer/property.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/svgbob/src/buffer/property_buffer/property.rs b/svgbob/src/buffer/property_buffer/property.rs
index f2d9d9a..20d5a35 100644
--- a/svgbob/src/buffer/property_buffer/property.rs
+++ b/svgbob/src/buffer/property_buffer/property.rs
@@ -132,10 +132,7 @@ impl Property {
}
/// derive a strong property with a strong signal
- pub(in crate) fn with_strong_fragments(
- ch: char,
- fragments: Vec<Fragment>,
- ) -> Self {
+ pub fn with_strong_fragments(ch: char, fragments: Vec<Fragment>) -> Self {
Property {
ch,
signature: vec![(Signal::Strong, fragments)],
@@ -175,7 +172,7 @@ impl Property {
self.ch.is_alphabetic() && self.ch != '_' // since space is used when a property is derived from strong
}
- pub(in crate) fn match_signature(&self, fragments: &Vec<Fragment>) -> bool {
+ pub fn match_signature(&self, fragments: &Vec<Fragment>) -> bool {
let signature_fragments = self.signature_fragments_with_signal(Strong);
signature_fragments == *fragments
}