@@ -703,6 +703,8 @@ impl InitFeatures {
703
703
#[ doc( hidden) ]
704
704
/// Converts `InitFeatures` to `Features<C>`. Only known `InitFeatures` relevant to context `C`
705
705
/// are included in the result.
706
+ ///
707
+ /// This is not exported to bindings users as it shouldn't be used outside of LDK
706
708
pub fn to_context < C : sealed:: Context > ( & self ) -> Features < C > {
707
709
self . to_context_internal ( )
708
710
}
@@ -712,6 +714,8 @@ impl Bolt11InvoiceFeatures {
712
714
#[ doc( hidden) ]
713
715
/// Converts `Bolt11InvoiceFeatures` to `Features<C>`. Only known `Bolt11InvoiceFeatures` relevant to
714
716
/// context `C` are included in the result.
717
+ ///
718
+ /// This is not exported to bindings users as it shouldn't be used outside of LDK
715
719
pub fn to_context < C : sealed:: Context > ( & self ) -> Features < C > {
716
720
self . to_context_internal ( )
717
721
}
@@ -737,15 +741,19 @@ impl Bolt12InvoiceFeatures {
737
741
#[ doc( hidden) ]
738
742
/// Converts [`Bolt12InvoiceFeatures`] to [`Features<C>`]. Only known [`Bolt12InvoiceFeatures`]
739
743
/// relevant to context `C` are included in the result.
744
+ ///
745
+ /// This is not exported to bindings users as it shouldn't be used outside of LDK
740
746
pub fn to_context < C : sealed:: Context > ( & self ) -> Features < C > {
741
747
self . to_context_internal ( )
742
748
}
743
749
}
744
750
745
751
impl ChannelTypeFeatures {
746
752
#[ doc( hidden) ]
747
- // Maps the relevant `InitFeatures` to `ChannelTypeFeatures`. Any unknown features to
748
- // `ChannelTypeFeatures` are not included in the result.
753
+ /// Maps the relevant `InitFeatures` to `ChannelTypeFeatures`. Any unknown features to
754
+ /// `ChannelTypeFeatures` are not included in the result.
755
+ ///
756
+ /// This is not exported to bindings users as it shouldn't be used outside of LDK
749
757
pub fn from_init ( init : & InitFeatures ) -> Self {
750
758
let mut ret = init. to_context_internal ( ) ;
751
759
// ChannelTypeFeatures must only contain required bits, so we OR the required forms of all
0 commit comments