Struct tensorflow::ops::StaticRegexReplace
source · pub struct StaticRegexReplace { /* private fields */ }
Expand description
Builder for the StaticRegexReplace
operation.
Implementations§
source§impl StaticRegexReplace
impl StaticRegexReplace
sourcepub fn pattern<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn pattern<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the pattern
attribute.
sourcepub fn rewrite<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn rewrite<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the rewrite
attribute.
sourcepub fn replace_global<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn replace_global<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the replace_global
attribute.
sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
sourcepub fn build<O0: Into<Output>>(
&self,
input: O0,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>>( &self, input: O0, scope: &mut Scope ) -> Result<Operation>
Builds the StaticRegexReplace
operation.
sourcepub fn build_instance(
&self,
input: Output,
scope: &mut Scope
) -> Result<StaticRegexReplaceInst>
pub fn build_instance( &self, input: Output, scope: &mut Scope ) -> Result<StaticRegexReplaceInst>
Builds a new instance of ‘StaticRegexReplace’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for StaticRegexReplace
impl Debug for StaticRegexReplace
source§impl Default for StaticRegexReplace
impl Default for StaticRegexReplace
source§fn default() -> StaticRegexReplace
fn default() -> StaticRegexReplace
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for StaticRegexReplace
impl Send for StaticRegexReplace
impl Sync for StaticRegexReplace
impl Unpin for StaticRegexReplace
impl UnwindSafe for StaticRegexReplace
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more