mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
gstreamer: Replace some generic function parameters with impl trait
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1160>
This commit is contained in:
parent
ef5d5f50e4
commit
2a935320e7
1 changed files with 8 additions and 8 deletions
|
@ -174,9 +174,9 @@ impl DebugCategory {
|
|||
#[inline]
|
||||
#[doc(alias = "gst_debug_log")]
|
||||
#[doc(alias = "gst_debug_log_literal")]
|
||||
pub fn log<O: IsA<glib::Object>>(
|
||||
pub fn log(
|
||||
self,
|
||||
obj: Option<&O>,
|
||||
obj: Option<&impl IsA<glib::Object>>,
|
||||
level: crate::DebugLevel,
|
||||
file: &glib::GStr,
|
||||
function: &glib::GStr,
|
||||
|
@ -192,9 +192,9 @@ impl DebugCategory {
|
|||
|
||||
#[inline]
|
||||
#[doc(alias = "gst_debug_log_literal")]
|
||||
pub fn log_literal<O: IsA<glib::Object>>(
|
||||
pub fn log_literal(
|
||||
self,
|
||||
obj: Option<&O>,
|
||||
obj: Option<&impl IsA<glib::Object>>,
|
||||
level: crate::DebugLevel,
|
||||
file: &glib::GStr,
|
||||
function: &glib::GStr,
|
||||
|
@ -212,9 +212,9 @@ impl DebugCategory {
|
|||
/// Logs without checking the log level.
|
||||
#[inline]
|
||||
#[doc(alias = "gst_debug_log")]
|
||||
pub fn log_unfiltered<O: IsA<glib::Object>>(
|
||||
pub fn log_unfiltered(
|
||||
self,
|
||||
obj: Option<&O>,
|
||||
obj: Option<&impl IsA<glib::Object>>,
|
||||
level: crate::DebugLevel,
|
||||
file: &glib::GStr,
|
||||
function: &glib::GStr,
|
||||
|
@ -235,9 +235,9 @@ impl DebugCategory {
|
|||
/// Logs without checking the log level.
|
||||
#[inline]
|
||||
#[doc(alias = "gst_debug_log_literal")]
|
||||
pub fn log_literal_unfiltered<O: IsA<glib::Object>>(
|
||||
pub fn log_literal_unfiltered(
|
||||
self,
|
||||
obj: Option<&O>,
|
||||
obj: Option<&impl IsA<glib::Object>>,
|
||||
level: crate::DebugLevel,
|
||||
file: &glib::GStr,
|
||||
function: &glib::GStr,
|
||||
|
|
Loading…
Reference in a new issue