Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.RadixTree.Word8.Key
Description
Safe functions for building and destroying radix tree keys.
Synopsis
- data Build
- buildBytes :: Build -> [Word8]
- buildByteString :: Build -> ByteString
- buildShortByteString :: Build -> ShortByteString
- data Feed
- feedBytes :: [Word8] -> Feed
- feedByteString :: ByteString -> Feed
- feedShortByteString :: ShortByteString -> Feed
- feedLazyByteString :: ByteString -> Feed
- feedText :: Text -> Feed
- feedLazyText :: Text -> Feed
Build
Key as stored in the radix tree.
Raw
buildBytes :: Build -> [Word8] Source #
Convert a key into a list of bytes.
ByteString
buildByteString :: Build -> ByteString Source #
Convert a key into a strict ByteString
.
buildShortByteString :: Build -> ShortByteString Source #
Convert a key into a ShortByteString
.
Text
Feed
Key as a sequence of individual bytes.
Raw
ByteString
feedByteString :: ByteString -> Feed Source #
Convert a strict ByteString
into a key.
feedShortByteString :: ShortByteString -> Feed Source #
Convert a ShortByteString
into a key.
feedLazyByteString :: ByteString -> Feed Source #
Convert a lazy ByteString
into a key.