File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed
Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 1717use crate :: Exceptions ;
1818use crate :: common:: Result ;
1919
20- #[ cfg( all( not( feature = "encoding_rs" ) , not( feature = "legacy_encoding" ) ) ) ]
21- compile_error ! (
22- "Either feature 'encoding_rs' or 'legacy_encoding' must be enabled for CharacterSet support."
23- ) ;
24-
2520/**
2621 * Encapsulates a Character Set ECI, according to "Extended Channel Interpretations" 5.3.1.1
2722 * of ISO 18004.
@@ -144,6 +139,21 @@ impl CharacterSet {
144139 }
145140}
146141
142+ #[ cfg( all( not( feature = "encoding_rs" ) , not( feature = "legacy_encoding" ) ) ) ]
143+ impl CharacterSet {
144+ pub fn encode ( & self , _input : & str ) -> Result < Vec < u8 > > {
145+ unimplemented ! ( )
146+ }
147+
148+ pub fn encode_replace ( & self , _input : & str ) -> Result < Vec < u8 > > {
149+ unimplemented ! ( )
150+ }
151+
152+ pub fn decode ( & self , _input : & [ u8 ] ) -> Result < String > {
153+ unimplemented ! ( )
154+ }
155+ }
156+
147157// MODERN IMPLEMENTATION (encoding_rs)
148158#[ cfg( feature = "encoding_rs" ) ]
149159impl CharacterSet {
You can’t perform that action at this time.
0 commit comments