We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c05b9d commit 8b52898Copy full SHA for 8b52898
sqlx-core/src/mysql/value.rs
@@ -31,18 +31,18 @@ pub struct MySqlValueRef<'r> {
31
}
32
33
impl<'r> MySqlValueRef<'r> {
34
- pub(crate) fn format(&self) -> MySqlValueFormat {
+ pub fn format(&self) -> MySqlValueFormat {
35
self.format
36
37
38
- pub(crate) fn as_bytes(&self) -> Result<&'r [u8], BoxDynError> {
+ pub fn as_bytes(&self) -> Result<&'r [u8], BoxDynError> {
39
match &self.value {
40
Some(v) => Ok(v),
41
None => Err(UnexpectedNullError.into()),
42
43
44
45
- pub(crate) fn as_str(&self) -> Result<&'r str, BoxDynError> {
+ pub fn as_str(&self) -> Result<&'r str, BoxDynError> {
46
Ok(from_utf8(self.as_bytes()?)?)
47
48
0 commit comments