Rename the methods of the backend as well (#164)

This commit is contained in:
tomaka 2017-10-12 11:54:09 +02:00 • committed by GitHub
parent 84f0acbd65
commit 4b019243c2
9 changed files with 23 additions and 23 deletions

View file

@ -36,7 +36,7 @@ impl Iterator for EndpointsIterator {
}
#[inline]
pub fn get_default_endpoint() -> Option<Endpoint> {
pub fn default_endpoint() -> Option<Endpoint> {
None
}
@ -45,14 +45,14 @@ pub struct Endpoint;
impl Endpoint {
#[inline]
pub fn get_supported_formats_list(
pub fn supported_formats(
&self)
-> Result<SupportedFormatsIterator, FormatsEnumerationError> {
unreachable!()
}
#[inline]
pub fn get_name(&self) -> String {
pub fn name(&self) -> String {
"null".to_owned()
}
}
@ -103,7 +103,7 @@ pub struct Buffer<T> {
impl<T> Buffer<T> {
#[inline]
pub fn get_buffer(&mut self) -> &mut [T] {
pub fn buffer(&mut self) -> &mut [T] {
unreachable!()
}