Skip to content

Commit 5be3d17

Browse files
committed
rename to input() and output()
1 parent 76ff088 commit 5be3d17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

optee-utee/src/parameter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl<'parameter> ParamValue<'parameter> {
8181
///
8282
/// Note: The memory it points to is volatile and can contain maliciously crafted
8383
/// data, so care should be taken when accessing it. For a safe api, first check
84-
/// the type of the memref via [`Self::in_`], [`Self::out`], or [`Self::inout`].
84+
/// the type of the memref via [`Self::input`], [`Self::output`], or [`Self::inout`].
8585
///
8686
/// These will return type type-safe versions that unsure that read or write access
8787
/// is only allowed based on the underlying [`ParamType`].
@@ -120,12 +120,12 @@ impl<'parameter, A> ParamMemref<'parameter, A> {
120120
}
121121

122122
/// Checks that this param is a [`ParamType::MemrefInput`] and casts access to [`Read`].
123-
pub fn in_(self) -> Result<ParamMemref<'parameter, Read>, InvalidAccessErr<Self, Read>> {
123+
pub fn input(self) -> Result<ParamMemref<'parameter, Read>, InvalidAccessErr<Self, Read>> {
124124
self.access(ParamType::MemrefInput)
125125
}
126126

127127
/// Checks that this param is a [`ParamType::MemrefOutput`] and casts access to [`Write`].
128-
pub fn out(self) -> Result<ParamMemref<'parameter, Write>, InvalidAccessErr<Self, Write>> {
128+
pub fn output(self) -> Result<ParamMemref<'parameter, Write>, InvalidAccessErr<Self, Write>> {
129129
self.access(ParamType::MemrefOutput)
130130
}
131131

0 commit comments

Comments
 (0)